Documentation
¶
Index ¶
- Variables
- func Between(min, max int) int
- func Constrain[T Numeric](i, low, high T) T
- func Fill(buffer *image.RGBA, rgba color.RGBA)
- func Interpolate[T Numeric](i, start1, stop1, start2, stop2 T) T
- func Lerp[T Numeric](a, b, k T) T
- func LoadBufferGray(b []byte) *image.Gray
- func LoadBufferPaletted(b []byte) *image.Paletted
- func LoadBufferRGBA(b []byte) *image.RGBA
- func LoadFileRGBA(filename string) *image.RGBA
- func Max[T Numeric](x, y T) T
- func Memset(a *[64000]uint16, v uint16)
- func Min[T Numeric](x, y T) T
- func Random() float64
- type Matrix
- type Numeric
- type Vector
Constants ¶
This section is empty.
Variables ¶
View Source
var TheRand = &rand{12345678, 4185243, 776511, 45411}
Functions ¶
func Interpolate ¶
func Interpolate[T Numeric](i, start1, stop1, start2, stop2 T) T
func LoadBufferGray ¶
func LoadBufferPaletted ¶
func LoadBufferRGBA ¶
func LoadFileRGBA ¶
Types ¶
type Numeric ¶
type Numeric interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.