Documentation ¶
Index ¶
- func HSVToRGB(h, s, v float32) (r, g, b float32)
- func PackFloat(r, g, b, a float32) float32
- func PackInt(r, g, b, a float32) uint32
- func RGBToHSV(r, g, b float32) (h, s, v float32)
- type Color
- func (c Color) Darken(amount float32) Color
- func (c Color) GetHue() float32
- func (c Color) Lighten(amount float32) Color
- func (c Color) Lighten2(amount float32) Color
- func (c Color) Mix(c1 Color, t float32) Color
- func (c Color) Mul(c1 Color) Color
- func (c Color) PackFloat() float32
- func (c Color) PackInt() uint32
- func (c Color) Shade(amount float32) Color
- func (c Color) Shade2(amount float32) Color
- func (c Color) Shift(h, s, v float32) Color
- func (c Color) ToArray() []float32
- func (c Color) ToVec4() mgl32.Vec4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.