palgen

package
v0.0.0-...-ac0f134 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorByParams

func ColorByParams(p Params, t float64) fcolor.RGB

t = [0..1]

func DrawPalette

func DrawPalette(m *image.RGBA, p Params)

func RandParams

func RandParams(r *rand.Rand, p *Params, n int)

Types

type Params

type Params struct {
	A, B, C, D Vec3
}

type Vec3

type Vec3 [3]float64

func CosVec3

func CosVec3(a Vec3) (b Vec3)

func (Vec3) Add

func (a Vec3) Add(b Vec3) (c Vec3)

func (Vec3) DivScalar

func (a Vec3) DivScalar(scalar float64) (b Vec3)

func (Vec3) Mul

func (a Vec3) Mul(b Vec3) (c Vec3)

func (Vec3) MulScalar

func (a Vec3) MulScalar(scalar float64) (b Vec3)

func (Vec3) Sub

func (a Vec3) Sub(b Vec3) (c Vec3)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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