color

package
v0.0.0-...-958e9d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type string
const (
	AliceBlue            Type = "#F0F8FF"
	AntiqueWhite         Type = "#FAEBD7"
	Aqua                 Type = "#00FFFF"
	Aquamarine           Type = "#7FFFD4"
	Azure                Type = "#F0FFFF"
	Beige                Type = "#F5F5DC"
	Bisque               Type = "#FFE4C4"
	Black                Type = "#000000"
	BlanchedAlmond       Type = "#FFEBCD"
	Blue                 Type = "#0000FF"
	BlueViolet           Type = "#8A2BE2"
	Brown                Type = "#A52A2A"
	BurlyWood            Type = "#DEB887"
	CadetBlue            Type = "#5F9EA0"
	Chartreuse           Type = "#7FFF00"
	Chocolate            Type = "#D2691E"
	Coral                Type = "#FF7F50"
	CornflowerBlue       Type = "#6495ED"
	Cornsilk             Type = "#FFF8DC"
	Crimson              Type = "#DC143C"
	Cyan                 Type = "#00FFFF"
	DarkBlue             Type = "#00008B"
	DarkCyan             Type = "#008B8B"
	DarkGoldenRod        Type = "#B8860B"
	DarkGray             Type = "#A9A9A9"
	DarkGrey             Type = "#A9A9A9"
	DarkGreen            Type = "#006400"
	DarkKhaki            Type = "#BDB76B"
	DarkMagenta          Type = "#8B008B"
	DarkOliveGreen       Type = "#556B2F"
	DarkOrange           Type = "#FF8C00"
	DarkOrchid           Type = "#9932CC"
	DarkRed              Type = "#8B0000"
	DarkSalmon           Type = "#E9967A"
	DarkSeaGreen         Type = "#8FBC8F"
	DarkSlateBlue        Type = "#483D8B"
	DarkSlateGray        Type = "#2F4F4F"
	DarkSlateGrey        Type = "#2F4F4F"
	DarkTurquoise        Type = "#00CED1"
	DarkViolet           Type = "#9400D3"
	DeepPink             Type = "#FF1493"
	DeepSkyBlue          Type = "#00BFFF"
	DimGray              Type = "#696969"
	DimGrey              Type = "#696969"
	DodgerBlue           Type = "#1E90FF"
	FireBrick            Type = "#B22222"
	FloralWhite          Type = "#FFFAF0"
	ForestGreen          Type = "#228B22"
	Fuchsia              Type = "#FF00FF"
	Gainsboro            Type = "#DCDCDC"
	GhostWhite           Type = "#F8F8FF"
	Gold                 Type = "#FFD700"
	GoldenRod            Type = "#DAA520"
	Gray                 Type = "#808080"
	Grey                 Type = "#808080"
	Green                Type = "#008000"
	GreenYellow          Type = "#ADFF2F"
	HoneyDew             Type = "#F0FFF0"
	HotPink              Type = "#FF69B4"
	IndianRed            Type = "#CD5C5C"
	Indigo               Type = "#4B0082"
	Ivory                Type = "#FFFFF0"
	Khaki                Type = "#F0E68C"
	Lavender             Type = "#E6E6FA"
	LavenderBlush        Type = "#FFF0F5"
	LawnGreen            Type = "#7CFC00"
	LemonChiffon         Type = "#FFFACD"
	LightBlue            Type = "#ADD8E6"
	LightCoral           Type = "#F08080"
	LightCyan            Type = "#E0FFFF"
	LightGoldenRodYellow Type = "#FAFAD2"
	LightGray            Type = "#D3D3D3"
	LightGrey            Type = "#D3D3D3"
	LightGreen           Type = "#90EE90"
	LightPink            Type = "#FFB6C1"
	LightSalmon          Type = "#FFA07A"
	LightSeaGreen        Type = "#20B2AA"
	LightSkyBlue         Type = "#87CEFA"
	LightSlateGray       Type = "#778899"
	LightSlateGrey       Type = "#778899"
	LightSteelBlue       Type = "#B0C4DE"
	LightYellow          Type = "#FFFFE0"
	Lime                 Type = "#00FF00"
	LimeGreen            Type = "#32CD32"
	Linen                Type = "#FAF0E6"
	Magenta              Type = "#FF00FF"
	Maroon               Type = "#800000"
	MediumAquaMarine     Type = "#66CDAA"
	MediumBlue           Type = "#0000CD"
	MediumOrchid         Type = "#BA55D3"
	MediumPurple         Type = "#9370DB"
	MediumSeaGreen       Type = "#3CB371"
	MediumSlateBlue      Type = "#7B68EE"
	MediumSpringGreen    Type = "#00FA9A"
	MediumTurquoise      Type = "#48D1CC"
	MediumVioletRed      Type = "#C71585"
	MidnightBlue         Type = "#191970"
	MintCream            Type = "#F5FFFA"
	MistyRose            Type = "#FFE4E1"
	Moccasin             Type = "#FFE4B5"
	NavajoWhite          Type = "#FFDEAD"
	Navy                 Type = "#000080"
	OldLace              Type = "#FDF5E6"
	Olive                Type = "#808000"
	OliveDrab            Type = "#6B8E23"
	Orange               Type = "#FFA500"
	OrangeRed            Type = "#FF4500"
	Orchid               Type = "#DA70D6"
	PaleGoldenRod        Type = "#EEE8AA"
	PaleGreen            Type = "#98FB98"
	PaleTurquoise        Type = "#AFEEEE"
	PaleVioletRed        Type = "#DB7093"
	PapayaWhip           Type = "#FFEFD5"
	PeachPuff            Type = "#FFDAB9"
	Peru                 Type = "#CD853F"
	Pink                 Type = "#FFC0CB"
	Plum                 Type = "#DDA0DD"
	PowderBlue           Type = "#B0E0E6"
	Purple               Type = "#800080"
	RebeccaPurple        Type = "#663399"
	Red                  Type = "#FF0000"
	RosyBrown            Type = "#BC8F8F"
	RoyalBlue            Type = "#4169E1"
	SaddleBrown          Type = "#8B4513"
	Salmon               Type = "#FA8072"
	SandyBrown           Type = "#F4A460"
	SeaGreen             Type = "#2E8B57"
	SeaShell             Type = "#FFF5EE"
	Sienna               Type = "#A0522D"
	Silver               Type = "#C0C0C0"
	SkyBlue              Type = "#87CEEB"
	SlateBlue            Type = "#6A5ACD"
	SlateGray            Type = "#708090"
	SlateGrey            Type = "#708090"
	Snow                 Type = "#FFFAFA"
	SpringGreen          Type = "#00FF7F"
	SteelBlue            Type = "#4682B4"
	Tan                  Type = "#D2B48C"
	Teal                 Type = "#008080"
	Thistle              Type = "#D8BFD8"
	Tomato               Type = "#FF6347"
	Transparent          Type = "#00000000"
	Turquoise            Type = "#40E0D0"
	Violet               Type = "#EE82EE"
	Wheat                Type = "#F5DEB3"
	White                Type = "#FFFFFF"
	WhiteSmoke           Type = "#F5F5F5"
	Yellow               Type = "#FFFF00"
	YellowGreen          Type = "#9ACD32"
)
const (
	Initial Type = "initial"
	Inherit Type = "inherit"
)

func HSL

func HSL(h, s, l interface{}) Type

HSL creates a Type using the Hue-Saturation-Lightness-Alpha model.

h		Defines a degree on the color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue
s		Defines the saturation; 0% is a shade of gray and 100% is the full color (full saturation)
l		Defines the lightness; 0% is black, 50% is normal, and 100% is white

func HSLA

func HSLA(h, s, l, a interface{}) Type

HSLA creates a Type using the Hue-Saturation-Lightness-Alpha model.

h		Defines a degree on the color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue
s		Defines the saturation; 0% is a shade of gray and 100% is the full color (full saturation)
l		Defines the lightness; 0% is black, 50% is normal, and 100% is white
a		Defines the opacity as a number between 0.0 (fully transparent) and 1.0 (fully opaque)

func RGB

func RGB(r, g, b interface{}) Type

RGB creates a Type using the Red-Green-Blue model.

r		values must be in range [0,255]
g		values must be in range [0,255]
b		values must be in range [0,255]

func RGBA

func RGBA(r, g, b, a interface{}) Type

RGBA creates a Type using the Red-Green-Blue-Alpha model.

r		values must be in range [0,255]
g		values must be in range [0,255]
b		values must be in range [0,255]
a		values must be in range [0.0, 1.0]

func (Type) AddTo

func (t Type) AddTo(m map[string]string)

func (Type) Apply

func (t Type) Apply(h *vecty.HTML)

type Value

type Value Type

func (Value) AddTo

func (v Value) AddTo(m map[string]string)

func (Value) Apply

func (v Value) Apply(h *vecty.HTML)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL