Versions in this module Expand all Collapse all v0 v0.1.0 Apr 23, 2024 Changes in this version + const ColorModeAuto + const ColorModeDark + const ColorModeExtDark + const ColorModeExtLight + const ColorModeExtMediumDark + const ColorModeExtMediumLight + const ColorModeLight + const HexBlack + const HexWhite + type Color struct + Blue int + Green int + Opacity float64 + Red int + var Black Color = Color{ ... } + var White Color = Color{ ... } + func NewColor() Color + func Parse(value any) Color + func ParseHex(value string) Color + func ParseRGB(value string) Color + func (c Color) ColorMode() string + func (c Color) Contrast(percent int) Color + func (c Color) Darken(percent int) Color + func (c Color) Hex() string + func (c Color) IsDark() bool + func (c Color) IsEmpty() bool + func (c Color) IsLight() bool + func (c Color) Lighten(percent int) Color + func (c Color) Mean() int + func (c Color) Mix(other any, percent int) Color + func (c Color) RGBA() string + func (c Color) String() string + func (c Color) Text() Color + func (c Color) TextExt() Color + func (color Color) NotEmpty() bool