pattern

package
v0.0.0-...-51c700d Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePattern

func GeneratePattern(Coordinates []Coordinate, NumberFixtures int, requestedShift int, chase bool, scannerState map[int]common.FixtureState) common.Pattern

GeneratePattern takes an array of Coordinates and turns them into a pattern which is the starting point for all sequence steps.

func GetNumberEnabledScanners

func GetNumberEnabledScanners(scannerState map[int]common.FixtureState, numberOfFixtures int) int

func MakePatterns

func MakePatterns() map[int]common.Pattern

func MakeSingleFixtureChase

func MakeSingleFixtureChase(colors []common.Color) common.Pattern

Types

type Coordinate

type Coordinate struct {
	Tilt int
	Pan  int
}

func CircleGenerator

func CircleGenerator(radius int, NumberCoordinates int, posX float64, posY float64) (out []Coordinate)

func ScanGenerateSawTooth

func ScanGenerateSawTooth(size float64, frequency float64, numberCoordinates float64, posX float64, posY float64) (out []Coordinate)

func ScanGeneratorLeftRight

func ScanGeneratorLeftRight(size float64, NumberCoordinates float64, posX float64, posY float64) (out []Coordinate)

func ScanGeneratorUpDown

func ScanGeneratorUpDown(size float64, NumberCoordinates float64, posX float64, posY float64) (out []Coordinate)

Jump to

Keyboard shortcuts

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