@lpm.dev/swiftd.hue

Pool

hue

Modern Swift color utilities with hex parsing, HSL conversion, WCAG accessibility, color theory, and platform bridging

lpminstall @lpm.dev/swiftd.hue

These docs were generated by AI and may not be fully accurate.

init(hex:)

function

Sources/Hue/Hue+Hex.swift

function init(hex:)(hex: String): Hue
function init(hex:)(hex: UInt32): Hue

Creates a color from a hex string. Supports #RGB, #RRGGBB, #RRGGBBAA formats.

Overload 1 of 2

hexStringA hex color string
Hue

Overload 2 of 2

hexUInt32A 24-bit RGB hex value
Hue