autoart

package
v0.0.0-...-e296270 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XY = iota
	RTHETA
)
View Source
const (
	RGB = iota
	GRAYSCALE
	CMYK
	HSV
	YCbCr
)
View Source
const (
	MOD = iota
	CLAMP
	SIGMOID
)

Variables

This section is empty.

Functions

func GenerateAudio

func GenerateAudio(output io.Writer, duration float64, sampleRate int32,
	functionLength int, rectifier int) error

func GenerateImage

func GenerateImage(width int, height int, config Config) image.Image

func GenerateImageFromFunctions

func GenerateImageFromFunctions(width int, height int, config Config,
	functions []autoutils.Function,
	vars []float64) image.Image

func GenerateImagePalette

func GenerateImagePalette(width int, height int, conf PaletteConfig) image.Image

func GenerateImagePaletteFrom

func GenerateImagePaletteFrom(width int, height int, conf PaletteConfig,
	funcs []autoutils.Function, vars []float64,
	palette []color.RGBA) image.Image

func GenerateImages

func GenerateImages(width int, height int, config Config, number int, verbose bool) []image.Image

func GenerateImagesPalette

func GenerateImagesPalette(width int, height int, conf PaletteConfig, number int, verbose bool) []image.Image

func GenerateVideo

func GenerateVideo(width int, height int, config Config, time float64,
	framerate int, filename string, verbose bool) error

func GenerateVideoPalette

func GenerateVideoPalette(width int, height int, pconfig PaletteConfig,
	time float64, framerate int, filename string, verbose bool) error

Types

type Config

type Config struct {
	FunctionLength int
	ColorSpace     int
	CoordinateSys  int
	Alpha          bool
	Rectifier      int // What to do with out-of-bounds values
}

type PaletteConfig

type PaletteConfig struct {
	NColors        int
	Alpha          bool
	FunctionLength int
	CoordinateSys  int
}

Jump to

Keyboard shortcuts

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