Skip to content

Releases

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 00:00

Full Changelog: 0.1.0...v0.1.0

ColorfulSwift 0.1.0

Choose a tag to compare

@kreshikhin kreshikhin released this 16 Nov 22:24

Initial release of ColorfulSwift.

A pure Swift library for color space conversions and color calculations.

Features

  • Strongly typed colors with Color<Space> and ColorProtocol.
  • 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