Documentation ¶
Index ¶
- func GeneratePattern(Coordinates []Coordinate, NumberFixtures int, requestedShift int, chase bool, ...) common.Pattern
- func GetNumberEnabledScanners(scannerState map[int]common.FixtureState, numberOfFixtures int) int
- func MakePatterns() map[int]common.Pattern
- func MakeSingleFixtureChase(colors []common.Color) common.Pattern
- type Coordinate
- func CircleGenerator(radius int, NumberCoordinates int, posX float64, posY float64) (out []Coordinate)
- func ScanGenerateSawTooth(size float64, frequency float64, numberCoordinates float64, posX float64, ...) (out []Coordinate)
- func ScanGeneratorLeftRight(size float64, NumberCoordinates float64, posX float64, posY float64) (out []Coordinate)
- func ScanGeneratorUpDown(size float64, NumberCoordinates float64, posX float64, posY float64) (out []Coordinate)
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 ¶
Types ¶
type Coordinate ¶
func CircleGenerator ¶
func CircleGenerator(radius int, NumberCoordinates int, posX float64, posY float64) (out []Coordinate)
func ScanGenerateSawTooth ¶
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)
Click to show internal directories.
Click to hide internal directories.