Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Palette []RGB
)
Functions ¶
func PaletteColorNames ¶
func PaletteColorNames() []string
Types ¶
type Color ¶
type Color interface { HSL() HSL HSV() HSV RGB() RGB RGBA() (r, g, b, a uint32) Equal(c Color) bool }
func FromStdColor ¶ added in v0.4.0
type Mode ¶
type Mode int
Mode x ENUM(effect, hs, ct)
type PaletteColor ¶
type PaletteColor int
Color x ENUM( Red, Orange, Yellow, YellowGreen, Green, CyanGreen, Cyan, CyanBlue, Blue, Purple, Magenta, MagentaRed, White, Black, LightGray, Gray, DarkGray, Transparent, )
const ( // Red is a PaletteColor of type Red Red PaletteColor = iota // Orange is a PaletteColor of type Orange Orange // Yellow is a PaletteColor of type Yellow Yellow // YellowGreen is a PaletteColor of type YellowGreen YellowGreen // Green is a PaletteColor of type Green Green // CyanGreen is a PaletteColor of type CyanGreen CyanGreen // Cyan is a PaletteColor of type Cyan Cyan // CyanBlue is a PaletteColor of type CyanBlue CyanBlue // Blue is a PaletteColor of type Blue Blue // Purple is a PaletteColor of type Purple Purple // Magenta is a PaletteColor of type Magenta Magenta // MagentaRed is a PaletteColor of type MagentaRed MagentaRed // White is a PaletteColor of type White White // Black is a PaletteColor of type Black Black // LightGray is a PaletteColor of type LightGray LightGray // Gray is a PaletteColor of type Gray Gray // DarkGray is a PaletteColor of type DarkGray DarkGray // Transparent is a PaletteColor of type Transparent Transparent )
func Colors ¶
func Colors() []PaletteColor
func ParsePaletteColor ¶
func ParsePaletteColor(name string) (PaletteColor, error)
ParsePaletteColor attempts to convert a string to a PaletteColor
func (PaletteColor) Equal ¶
func (c PaletteColor) Equal(col Color) bool
func (PaletteColor) HSL ¶
func (c PaletteColor) HSL() HSL
func (PaletteColor) HSV ¶
func (c PaletteColor) HSV() HSV
func (PaletteColor) RGB ¶
func (c PaletteColor) RGB() RGB
func (PaletteColor) RGBA ¶
func (c PaletteColor) RGBA() (r, g, b, a uint32)
func (PaletteColor) String ¶
func (i PaletteColor) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.