Index
Modules:
chroma
,
chroma/blends
,
chroma/colortypes
,
chroma/distance
,
chroma/names
,
chroma/temperature
,
chroma/transformations
.
API symbols
`$`:
chroma: proc `$`(c: Color): string
`*`:
blends: proc `*`(c: Color; v: float32): Color
`+`:
blends: proc `+`(c: Color; v: float32): Color
blends: proc `+`(v: float32; c: Color): Color
`-`:
blends: proc `-`(c: Color; v: float32): Color
blends: proc `-`(v: float32; c: Color): Color
`/`:
blends: proc `/`(c: Color; v: float32): Color
almostEqual:
chroma: proc almostEqual(a, b: Color; ep = 0.01): bool
asCmy:
transformations: proc asCmy(c: SomeColor): ColorCMY
asCmyk:
transformations: proc asCmyk(c: SomeColor): ColorCMYK
asColor:
transformations: proc asColor(c: SomeColor): Color
asHsl:
transformations: proc asHsl(c: SomeColor): ColorHSL
asHsv:
transformations: proc asHsv(c: SomeColor): ColorHSV
asLab:
transformations: proc asLab(c: SomeColor): ColorLAB
asLuv:
transformations: proc asLuv(c: SomeColor): ColorLUV
asOklab:
transformations: proc asOklab(c: SomeColor): ColorOklab
asPolarLAB:
transformations: proc asPolarLAB(c: SomeColor): ColorPolarLAB
asPolarLuv:
transformations: proc asPolarLuv(c: SomeColor): ColorPolarLUV
asPolarOklab:
transformations: proc asPolarOklab(c: SomeColor): ColorPolarOklab
asRgb:
transformations: proc asRgb(c: SomeColor): ColorRGB
asRgba:
transformations: proc asRgba(c: SomeColor): ColorRGBA
asRgbx:
transformations: proc asRgbx(c: SomeColor): ColorRGBX
asXyz:
transformations: proc asXyz(c: SomeColor): ColorXYZ
asYuv:
transformations: proc asYuv(c: SomeColor): ColorYUV
blendColor:
blends: proc blendColor(backdrop, source: Color): Color
blendColorBurn:
blends: proc blendColorBurn(backdrop, source: Color): Color
blendColorDodge:
blends: proc blendColorDodge(backdrop, source: Color): Color
blendDarken:
blends: proc blendDarken(backdrop, source: Color): Color
blendDifference:
blends: proc blendDifference(backdrop, source: Color): Color
blendExclusion:
blends: proc blendExclusion(backdrop, source: Color): Color
blendHardLight:
blends: proc blendHardLight(backdrop, source: Color): Color
blendHue:
blends: proc blendHue(backdrop, source: Color): Color
blendLighten:
blends: proc blendLighten(backdrop, source: Color): Color
blendLinearBurn:
blends: proc blendLinearBurn(backdrop, source: Color): Color
blendLinearDodge:
blends: proc blendLinearDodge(backdrop, source: Color): Color
blendLuminosity:
blends: proc blendLuminosity(backdrop, source: Color): Color
blendMultiply:
blends: proc blendMultiply(backdrop, source: Color): Color
blendNormal:
blends: proc blendNormal(backdrop, source: Color): Color
blendOverlay:
blends: proc blendOverlay(backdrop, source: Color): Color
blendSaturation:
blends: proc blendSaturation(backdrop, source: Color): Color
blendScreen:
blends: proc blendScreen(backdrop, source: Color): Color
blendSoftLight:
blends: proc blendSoftLight(backdrop, source: Color): Color
cmy:
colortypes: proc cmy(c, m, y: float32): ColorCMY
transformations: proc cmy(c: Color): ColorCMY
cmyk:
colortypes: proc cmyk(c, m, y, k: float32): ColorCMYK
transformations: proc cmyk(c: Color): ColorCMYK
Color:
colortypes: object Color
color:
colortypes: proc color(r, g, b: float32; a: float32 = 1.0): Color
transformations: proc color(c: Color): Color
transformations: proc color(c: ColorCMY): Color
transformations: proc color(color: ColorCMYK): Color
transformations: proc color(c: ColorHSL): Color
transformations: proc color(c: ColorHSV): Color
transformations: proc color(c: ColorLAB): Color
transformations: proc color(c: ColorLUV): Color
transformations: proc color(c: ColorOklab): Color
transformations: proc color(c: ColorPolarLAB): Color
transformations: proc color(c: ColorPolarLUV): Color
transformations: proc color(c: ColorPolarOklab): Color
transformations: proc color(c: ColorRGB): Color
transformations: proc color(c: ColorRGBA): Color
transformations: proc color(rgbx: ColorRGBX): Color
transformations: proc color(c: ColorXYZ): Color
transformations: proc color(c: ColorYUV): Color
ColorCMY:
colortypes: object ColorCMY
ColorCMYK:
colortypes: object ColorCMYK
ColorHCL:
colortypes: type ColorHCL
ColorHSL:
colortypes: object ColorHSL
ColorHSV:
colortypes: object ColorHSV
ColorLAB:
colortypes: object ColorLAB
ColorLUV:
colortypes: object ColorLUV
colorNames:
names: const colorNames
ColorOklab:
colortypes: object ColorOklab
ColorPolarLAB:
colortypes: object ColorPolarLAB
ColorPolarLUV:
colortypes: object ColorPolarLUV
ColorPolarOklab:
colortypes: object ColorPolarOklab
ColorRGB:
colortypes: object ColorRGB
ColorRGBA:
colortypes: object ColorRGBA
ColorRGBX:
colortypes: object ColorRGBX
ColorXYZ:
colortypes: object ColorXYZ
ColorYUV:
colortypes: object ColorYUV
darken:
chroma: proc darken(color: Color; amount: float32): Color
deltaE00:
distance: proc deltaE00(c1, c2: ColorLAB; kL, kC, kH = 1.float32): float32
desaturate:
chroma: proc desaturate(color: Color; amount: float32): Color
distance:
chroma: proc distance(c1, c2: SomeColor): float32
epsilon:
transformations: const epsilon
f:
transformations: proc f(t: float32): float32
fromTemperature:
temperature: proc fromTemperature(kelvin: float): Color
hash:
chroma: proc hash(c: Color): Hash
chroma: proc hash(c: ColorCMY): Hash
chroma: proc hash(c: ColorCMYK): Hash
chroma: proc hash(c: ColorHSL): Hash
chroma: proc hash(c: ColorHSV): Hash
chroma: proc hash(c: ColorLAB): Hash
chroma: proc hash(c: ColorLUV): Hash
chroma: proc hash(c: ColorOklab): Hash
chroma: proc hash(c: ColorPolarLAB): Hash
chroma: proc hash(c: ColorPolarLUV): Hash
chroma: proc hash(c: ColorPolarOklab): Hash
chroma: proc hash(c: ColorRGB): Hash
chroma: proc hash(c: ColorRGBA): Hash
chroma: proc hash(c: ColorXYZ): Hash
chroma: proc hash(c: ColorYUV): Hash
hsl:
colortypes: proc hsl(h, s, l: float32): ColorHSL
transformations: proc hsl(c: Color): ColorHSL
hsv:
colortypes: proc hsv(h, s, v: float32): ColorHSV
transformations: proc hsv(c: Color): ColorHSV
InvalidColor:
colortypes: object InvalidColor
kappa:
transformations: const kappa
lab:
colortypes: proc lab(l, a, b: float32): ColorLAB
transformations: proc lab(c: Color): ColorLAB
transformations: proc lab(c: ColorPolarLAB): ColorLAB
transformations: proc lab(c: ColorXYZ): ColorLAB
lighten:
chroma: proc lighten(color: Color; amount: float32): Color
luv:
colortypes: proc luv(l, u, v: float32): ColorLUV
transformations: proc luv(c: Color): ColorLUV
transformations: proc luv(c: ColorPolarLUV): ColorLUV
transformations: proc luv(c: ColorXYZ): ColorLUV
mix:
chroma: proc mix(a, b: Color): Color
chroma: proc mix(a, b: Color; v: float32): Color
chroma: proc mix(a, b: ColorRGB): ColorRGB
chroma: proc mix(a, b: ColorRGBA): ColorRGBA
mixCMYK:
chroma: proc mixCMYK(colorA, colorB: Color): Color
oklab:
colortypes: proc oklab(L, a, b: float32): ColorOklab
transformations: proc oklab(c: Color): ColorOklab
transformations: proc oklab(c: ColorPolarOklab): ColorOklab
parseHex:
chroma: proc parseHex(hex: string): Color
parseHexAlpha:
chroma: proc parseHexAlpha(hex: string): Color
parseHtmlColor:
chroma: proc parseHtmlColor(colorText: string): Color
parseHtmlHex:
chroma: proc parseHtmlHex(hex: string): Color
parseHtmlHexTiny:
chroma: proc parseHtmlHexTiny(hex: string): Color
parseHtmlName:
chroma: proc parseHtmlName(text: string): Color
parseHtmlRgb:
chroma: proc parseHtmlRgb(text: string): Color
parseHtmlRgba:
chroma: proc parseHtmlRgba(text: string): Color
polarLAB:
colortypes: proc polarLAB(l, c, h: float32): ColorPolarLAB
transformations: proc polarLAB(c: Color): ColorPolarLAB
transformations: proc polarLAB(c: ColorLAB): ColorPolarLAB
polarLUV:
colortypes: proc polarLUV(h, c, l: float32): ColorPolarLUV
transformations: proc polarLUV(c: Color): ColorPolarLUV
transformations: proc polarLUV(c: ColorLUV): ColorPolarLUV
polarOklab:
colortypes: proc polarOklab(L, C, h: float32): ColorPolarOklab
transformations: proc polarOklab(c: Color): ColorPolarOklab
transformations: proc polarOklab(c: ColorOklab): ColorPolarOklab
rgb:
colortypes: proc rgb(r, g, b: uint8): ColorRGB
transformations: proc rgb(c: Color): ColorRGB
rgba:
colortypes: proc rgba(r, g, b, a: uint8): ColorRGBA
transformations: proc rgba(c: Color): ColorRGBA
transformations: proc rgba(c: ColorRGBX): ColorRGBA
rgbx:
colortypes: proc rgbx(r, g, b, a: uint8): ColorRGBX
transformations: proc rgbx(c: Color): ColorRGBX
transformations: proc rgbx(c: ColorRGB): ColorRGBX
transformations: proc rgbx(c: ColorRGBA): ColorRGBX
saturate:
chroma: proc saturate(color: Color; amount: float32): Color
SomeColor:
colortypes: type SomeColor
spin:
chroma: proc spin(color: Color; degrees: float32): Color
to:
transformations: proc to[T: SomeColor](c: SomeColor; toColor: typedesc[T]): T
toHex:
chroma: proc toHex(c: Color): string
toHexAlpha:
chroma: proc toHexAlpha(c: Color): string
toHtmlHex:
chroma: proc toHtmlHex(c: Color): string
toHtmlHexTiny:
chroma: proc toHtmlHexTiny(c: Color): string
toHtmlRgb:
chroma: proc toHtmlRgb(c: Color): string
toHtmlRgba:
chroma: proc toHtmlRgba(c: Color): string
uv:
transformations: proc uv(c: ColorXYZ): tuple[u, v: float32]
xyz:
colortypes: proc xyz(x, y, z: float32): ColorXYZ
transformations: proc xyz(c: Color): ColorXYZ
transformations: proc xyz(c: ColorLAB): ColorXYZ
transformations: proc xyz(c: ColorLUV): ColorXYZ
yuv:
colortypes: proc yuv(y, u, v: float32): ColorYUV
transformations: proc yuv(c: Color): ColorYUV