Documentation
¶
Index ¶
Constants ¶
View Source
const XMLNamespaceSVG = "http://www.w3.org/2000/svg"
Variables ¶
View Source
var D65 = Illuminant{ X: [3]float64{0.4124564, 0.3575761, 0.1804375}, Y: [3]float64{0.2126729, 0.7151522, 0.0721750}, Z: [3]float64{0.0193339, 0.1191920, 0.9503041}, R: [3]float64{3.2406, -1.5372, -0.4986}, G: [3]float64{-0.9689, 1.8758, 0.0415}, B: [3]float64{0.0557, -0.2040, 1.0570}, Reference: XYZ{ X: 1.05211106084, Y: 1.0, Z: 0.9184170164, }, }
View Source
var (
MonkSkinTone, _ = BuildPalette(
D65,
"#f6ede4",
"#f3e7db",
"#f7ead0",
"#eadaba",
"#d7bd96",
"#a07e56",
"#825c43",
"#604134",
"#3a312a",
"#292420",
)
)
Functions ¶
This section is empty.
Types ¶
type Illuminant ¶
type Linear ¶
type Palette ¶
type Palette []Lab
func BuildPalette ¶
func BuildPalette(illuminant Illuminant, hs ...string) (Palette, error)
type RGB ¶
func (RGB) Lab ¶
func (rgb RGB) Lab(illuminant Illuminant) Lab
func (RGB) XYZ ¶
func (rgb RGB) XYZ(illuminant Illuminant) XYZ
type Rectangle ¶
type Rectangle struct {
XMLName xml.Name `xml:"rect"`
X int `xml:"x,attr,omitempty"`
Y int `xml:"y,attr,omitempty"`
W uint `xml:"width,attr"`
H uint `xml:"height,attr"`
Fill string `xml:"fill,attr"`
}
func NewRectangle ¶
type SVG ¶
Click to show internal directories.
Click to hide internal directories.