patterns

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FontData = [126][]byte{} // 126 '~'

/* 125 elements not displayed */

Functions

func AlternateRGBLinear

func AlternateRGBLinear(R0 byte, G0 byte, B0 byte, R1 byte, G1 byte, B1 byte, fromX int, toX int) []byte

func Even

func Even(number int) bool

func FillPanel

func FillPanel(w int, h int, r byte, g byte, b byte) [][]RGBcolor

func FillPanelRGB

func FillPanelRGB(w int, h int, colour RGBcolor) [][]RGBcolor

func Gradient

func Gradient(fromR byte, fromG byte, fromB byte, toR byte, toG byte, toB byte, fromX int, toX int) []byte

gradient returns from fromX to toX fading from (fromR,fromG,fromB) to (toR,toG,toB) at least that's the idea.

func GradientPanel

func GradientPanel(w int, h int, fromColour RGBcolor, toColour RGBcolor) [][]RGBcolor

func Letter added in v0.0.6

func Letter(whichLetter rune) [][]RGBcolor

func LinearPlasma

func LinearPlasma(l int) []byte

func PlasmaColourPanel

func PlasmaColourPanel(w int, h int, speed uint16) [][]RGBcolor

func PlasmaPanel

func PlasmaPanel(w int, h int, speed uint16) [][]RGBcolor

func PlasmaPanelSingleColor added in v0.0.11

func PlasmaPanelSingleColor(w int, h int, speed uint16, baseColor RGBcolor) [][]RGBcolor

func RandomColourPanel

func RandomColourPanel(w int, h int, speed uint16) [][]RGBcolor

func RedPanel

func RedPanel(w int, h int) [][]RGBcolor

func SineChase

func SineChase(w int, h int, bgColor RGBcolor, fgColor RGBcolor, speed uint16) [][]RGBcolor

func Sinewave

func Sinewave(w int, h int, bgColor RGBcolor, fgColor RGBcolor, speed uint16) [][]RGBcolor

func ZigZag

func ZigZag(w int, h int) [][]RGBcolor

Types

type RGBcolor

type RGBcolor = [3]byte

Jump to

Keyboard shortcuts

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