Index
Modules:
catppuccin
,
catppuccin/chroma
.
API symbols
`$`:
chroma: proc `$`(c: Color): string
asColor:
chroma: proc asColor(c: SomeColor): Color
asHsl:
chroma: proc asHsl(c: SomeColor): ColorHSL
asRgb:
chroma: proc asRgb(c: SomeColor): ColorRGB
Color:
chroma: object Color
color:
chroma: proc color(c: Color): Color
chroma: proc color(c: ColorHSL): Color
chroma: proc color(c: ColorRGB): Color
chroma: proc color(c: ColorRGBA): Color
chroma: proc color(r, g, b: float32; a: float32 = 1.0): Color
ColorHSL:
chroma: object ColorHSL
ColorRGB:
chroma: object ColorRGB
ColorRGBA:
chroma: object ColorRGBA
frappe:
catppuccin: const frappe
hash:
chroma: proc hash(c: Color): Hash
chroma: proc hash(c: ColorHSL): Hash
chroma: proc hash(c: ColorRGB): Hash
chroma: proc hash(c: ColorRGBA): Hash
hsl:
chroma: proc hsl(c: Color): ColorHSL
chroma: proc hsl(h, s, l: float32): ColorHSL
InvalidColor:
chroma: object InvalidColor
latte:
catppuccin: const latte
macchiato:
catppuccin: const macchiato
mocha:
catppuccin: const mocha
rgb:
chroma: proc rgb(c: Color): ColorRGB
chroma: proc rgb(r, g, b: uint8): ColorRGB
rgba:
chroma: proc rgba(c: Color): ColorRGBA
chroma: proc rgba(r, g, b, a: uint8): ColorRGBA
SomeColor:
chroma: type SomeColor
to:
chroma: 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