Repository navigation
Releases
Releases · kreshikhin/ColorfulSwift
v0.1.0
Full Changelog: 0.1.0...v0.1.0
ColorfulSwift 0.1.0
Initial release of ColorfulSwift.
A pure Swift library for color space conversions and color calculations.
Features
- Strongly typed colors with
Color<Space>andColorProtocol. - sRGB, Linear sRGB, CIE XYZ, CIELAB, CIELCH, OKLab, and OKLCH.
- Color space conversions with D50/D65 chromatic adaptation.
- Color interpolation.
- CIE76 color difference.
- WCAG 2.x contrast ratio.
- Cross-platform support with no external dependencies.
Installation
Add ColorfulSwift through Swift Package Manager:
.package(
url: "https://github.com/kreshikhin/ColorfulSwift.git",
from: "0.1.0"
)Import the library:
import Colorful