Documentation ¶
Index ¶
Constants ¶
View Source
const ( COLOR_BLACK = "#000000" COLOR_GREY = "#575757" COLOR_DARK_GRAY = "#252525" COLOR_LIGHT_GRAY = "#9d9d9d" COLOR_RED = "#ff0000" COLOR_GREEN = "#00ff00" COLOR_BLUE = "#0000ff" COLOR_YELLOW = "#ffff00" COLOR_PURPLE = "#ff00ff" COLOR_CYAN = "#00ffff" COLOR_ORANGE = "#ffa500" COLOR_BROWN = "#a52a2a" COLOR_PINK = "#ffc0cb" COLOR_WHITE = "#ffffff" COLOR_LIME = "#00ff00" COLOR_MAROON = "#800000" COLOR_NAVY = "#000080" COLOR_OLIVE = "#808000" COLOR_TEAL = "#008080" COLOR_AQUA = "#00ffff" COLOR_FUCHSIA = "#ff00ff" COLOR_SILVER = "#c0c0c0" )
Predefined colors
Variables ¶
View Source
var ( COLOR_MAIN = "white" COLOR_ONE = "#222e50" COLOR_TWO = "#e9d985" COLOR_THREE = "#439a86" COLOR_FOUR = "#DADFF7" COLOR_FIVE = "#007991" COLOR_SIX = "#ff0057" BACKGROUND_COLOR = "rgba(0,0,0,0.5)" )
General colors for use in CSS. Can be overridden.
Functions ¶
func Complementary ¶ added in v1.0.4
Types ¶
type Color ¶ added in v1.0.4
https://github.com/lucasb-eyer/go-colorful
func Hex ¶ added in v1.0.4
https://github.com/lucasb-eyer/go-colorful Hex parses a "html" hex color-string, either in the 3 "#f0c" or 6 "#ff1034" digits form.
func Hsv ¶ added in v1.0.4
https://github.com/lucasb-eyer/go-colorful Hsv creates a new Color given a Hue in [0..360], a Saturation and a Value in [0..1]
func (*Color) Complementary ¶ added in v1.0.4
func (Color) Hex ¶ added in v1.0.4
https://github.com/lucasb-eyer/go-colorful Hex returns the hex "html" representation of the color, as in #ff0080.
func (Color) RGB255 ¶ added in v1.0.4
https://github.com/lucasb-eyer/go-colorful Might come in handy sometimes to reduce boilerplate code.
func (Color) RGBA ¶ added in v1.0.4
https://github.com/lucasb-eyer/go-colorful Implement the Go color.Color interface.
Click to show internal directories.
Click to hide internal directories.