color

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: GPL-3.0, GPL-3.0-or-later Imports: 0 Imported by: 0

Documentation

Overview

Package color define Color type which contains color value.

Index

Constants

This section is empty.

Variables

View Source
var (
	// White color.
	White = New(0xFF, 0xFF, 0xFF, 0xFF)

	//Gray color.
	Gray = New(0x80, 0x80, 0x80, 0xFF)
)

Functions

This section is empty.

Types

type Color

type Color struct {
	R uint8 `json:"r"`
	G uint8 `json:"g"`
	B uint8 `json:"b"`
	A uint8 `json:"a"`
}

Color represent (R, G, B , A) color.

func New

func New(R, G, B, A uint8) Color

New construct new color.

Jump to

Keyboard shortcuts

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