ratz/src/communication/media/images/gg/gradient.go

type stop

type stops

// Len satisfies the Sort interface.
func (s stops) Len() int {}

// Less satisfies the Sort interface.
func (s stops) Less(i, j int) bool {}

// Swap satisfies the Sort interface.
func (s stops) Swap(i, j int) {}

type Gradient

type linearGradient

func (g *linearGradient) ColorAt(x, y int) color.Color {}

func (g *linearGradient) AddColorStop(offset float64, color color.Color) {}

func NewLinearGradient(x0, y0, x1, y1 float64) Gradient {}

type circle

type radialGradient

func dot3(x0, y0, z0, x1, y1, z1 float64) float64 {}

func (g *radialGradient) ColorAt(x, y int) color.Color {}

func (g *radialGradient) AddColorStop(offset float64, color color.Color) {}

func NewRadialGradient(x0, y0, r0, x1, y1, r1 float64) Gradient {}

func getColor(pos float64, stops stops) color.Color {}

func colorLerp(c0, c1 color.Color, t float64) color.Color {}

func lerp(a, b uint32, t float64) uint8 {}