colour

package
v0.0.0-...-c5bcced Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(orb *orbit.Orbit) interface{}

Types

type Colour

type Colour struct {
	// contains filtered or unexported fields
}

func NewColour

func NewColour(orb *orbit.Orbit, typ kind, col colorful.Color) *Colour

func NewColourWithCMYK

func NewColourWithCMYK(orb *orbit.Orbit, typ kind, col colorful.Color, c, m, y, k float64) *Colour

func (*Colour) Cmyk

func (this *Colour) Cmyk() [4]float64

func (*Colour) Hcl

func (this *Colour) Hcl() [3]float64

func (*Colour) Hex

func (this *Colour) Hex() string

func (*Colour) Hsl

func (this *Colour) Hsl() [3]float64

func (*Colour) Hsv

func (this *Colour) Hsv() [3]float64

func (*Colour) Lab

func (this *Colour) Lab() [3]float64

func (*Colour) Luv

func (this *Colour) Luv() [3]float64

func (*Colour) Output

func (this *Colour) Output() (string, float64, float64, float64, float64)

func (*Colour) Rgb

func (this *Colour) Rgb() [3]uint8

func (*Colour) Rgba

func (this *Colour) Rgba() [4]uint8

func (*Colour) String

func (this *Colour) String() string

func (*Colour) ToCMYK

func (this *Colour) ToCMYK() color.CMYK

func (*Colour) ToRGBA

func (this *Colour) ToRGBA() color.RGBA

func (*Colour) Xyy

func (this *Colour) Xyy() [3]float64

func (*Colour) Xyz

func (this *Colour) Xyz() [3]float64

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (*Module) Cmyk

func (this *Module) Cmyk(c, m, y, k float64) *Colour

func (*Module) Hcl

func (this *Module) Hcl(h, c, l float64) *Colour

func (*Module) Hex

func (this *Module) Hex(h string) *Colour

func (*Module) Hsl

func (this *Module) Hsl(h, s, l float64) *Colour

func (*Module) Hsv

func (this *Module) Hsv(h, s, v float64) *Colour

func (*Module) Lab

func (this *Module) Lab(l, a, b float64) *Colour

func (*Module) Load

func (this *Module) Load(call otto.FunctionCall) otto.Value

func (*Module) Luv

func (this *Module) Luv(l, u, v float64) *Colour

func (*Module) Rgb

func (this *Module) Rgb(r, g, b float64) *Colour

func (*Module) Xyy

func (this *Module) Xyy(x, y, z float64) *Colour

func (*Module) Xyz

func (this *Module) Xyz(x, y, z float64) *Colour

Jump to

Keyboard shortcuts

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