Versions in this module Expand all Collapse all v0 v0.1.6 Apr 29, 2024 v0.1.5 Apr 12, 2024 v0.1.4 Apr 7, 2024 v0.1.3 Apr 6, 2024 Changes in this version + func Is(a, b color.Color) bool v0.1.2 Feb 19, 2024 v0.1.1 Feb 3, 2024 Changes in this version type NamedColor + const Transparent v0.1.0 Feb 3, 2024 Changes in this version + func Map() map[NamedColor]Color + func MapString() map[string]Color + func Register(n NamedColor, clr color.Color) + func RegisterName(s string, clr color.Color) + type Color struct + A uint8 + B uint8 + G uint8 + NamedColor NamedColor + R uint8 + func FromColor(clr color.Color) Color + func FromHex(s string) (Color, bool) + func FromName(s string) (Color, bool) + func FromRGB(s string) (Color, bool) + func FromRGBA(s string) (Color, bool) + func FromWeb(s string) (c Color, ok bool) + func New(r, g, b, a uint8) Color + func Parse(s string) (Color, error) + func ToColor(r, g, b, a uint8, name string) Color + func (c *Color) Pflag() Pflag + func (c Color) AsHex() string + func (c Color) AsRGB() string + func (c Color) AsRGBA() string + func (c Color) AsText() string + func (c Color) AsWeb() string + func (c Color) AsWebShort() string + func (c Color) Dark() bool + func (c Color) Format(f fmt.State, verb rune) + func (c Color) Is(clr color.Color) bool + func (c Color) Light() bool + func (c Color) Name() string + func (c Color) RGBA() (r, g, b, a uint32) + func (clr *Color) MarshalText() ([]byte, error) + func (clr *Color) UnmarshalText(text []byte) error + type Error string + const ErrInvalidColor + func (err Error) Error() string + type NamedColor string + const Aliceblue + const Antiquewhite + const Aqua + const Aquamarine + const Azure + const Beige + const Bisque + const Black + const Blanchedalmond + const Blue + const Blueviolet + const Brown + const Burlywood + const Cadetblue + const Chartreuse + const Chocolate + const Coral + const Cornflowerblue + const Cornsilk + const Crimson + const Cyan + const Darkblue + const Darkcyan + const Darkgoldenrod + const Darkgray + const Darkgreen + const Darkgrey + const Darkkhaki + const Darkmagenta + const Darkolivegreen + const Darkorange + const Darkorchid + const Darkred + const Darksalmon + const Darkseagreen + const Darkslateblue + const Darkslategray + const Darkslategrey + const Darkturquoise + const Darkviolet + const Deeppink + const Deepskyblue + const Dimgray + const Dimgrey + const Dodgerblue + const Firebrick + const Floralwhite + const Forestgreen + const Fuchsia + const Gainsboro + const Ghostwhite + const Gold + const Goldenrod + const Gray + const Green + const Greenyellow + const Grey + const Honeydew + const Hotpink + const Indianred + const Indigo + const Ivory + const Khaki + const Lavender + const Lavenderblush + const Lawngreen + const Lemonchiffon + const Lightblue + const Lightcoral + const Lightcyan + const Lightgoldenrodyellow + const Lightgray + const Lightgreen + const Lightgrey + const Lightpink + const Lightsalmon + const Lightseagreen + const Lightskyblue + const Lightslategray + const Lightslategrey + const Lightsteelblue + const Lightyellow + const Lime + const Limegreen + const Linen + const Magenta + const Maroon + const Mediumaquamarine + const Mediumblue + const Mediumorchid + const Mediumpurple + const Mediumseagreen + const Mediumslateblue + const Mediumspringgreen + const Mediumturquoise + const Mediumvioletred + const Midnightblue + const Mintcream + const Mistyrose + const Moccasin + const Navajowhite + const Navy + const Oldlace + const Olive + const Olivedrab + const Orange + const Orangered + const Orchid + const Palegoldenrod + const Palegreen + const Paleturquoise + const Palevioletred + const Papayawhip + const Peachpuff + const Peru + const Pink + const Plum + const Powderblue + const Purple + const Red + const Rosybrown + const Royalblue + const Saddlebrown + const Salmon + const Sandybrown + const Seagreen + const Seashell + const Sienna + const Silver + const Skyblue + const Slateblue + const Slategray + const Slategrey + const Snow + const Springgreen + const Steelblue + const Tan + const Teal + const Thistle + const Tomato + const Turquoise + const Violet + const Wheat + const White + const Whitesmoke + const Yellow + const Yellowgreen + func (c NamedColor) Color() Color + func (c NamedColor) Format(f fmt.State, verb rune) + func (c NamedColor) RGBA() (r, g, b, a uint32) + type Pflag struct + func (Pflag) Type() string + func (f Pflag) Set(s string) error + func (f Pflag) String() string