color

package
v0.0.0-...-77289c9 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	Red   float32
	Green float32
	Blue  float32
}

func GenerateGradient

func GenerateGradient(numColors int, steps int) []Color

func NewRandomColor

func NewRandomColor() Color

func (Color) Add

func (c Color) Add(d Color) Color

func (Color) MultiplyFloat

func (c Color) MultiplyFloat(x float32) Color

func (Color) Subtract

func (c Color) Subtract(d Color) Color

type ColorInterpolation

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

func NewColorInterpolation

func NewColorInterpolation(a Color, b Color) ColorInterpolation

func (ColorInterpolation) Interpolate

func (c ColorInterpolation) Interpolate(percent float32) Color

Jump to

Keyboard shortcuts

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