effects

package
v0.0.0-...-e340b1f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Effect

type Effect interface {
	Apply([]float64) []byte
}

func NewLuxceptionEffect

func NewLuxceptionEffect(ledCount int, defaultColor color.RGBA, host string, port uint16, pinger *utils.Pinger) Effect

func NewRainbowEffect

func NewRainbowEffect(ledCount int, rate float64) Effect

func NewSolidColorEffect

func NewSolidColorEffect(ledCount int, color color.RGBA) Effect

type LuxceptionEffect

type LuxceptionEffect struct {
	// contains filtered or unexported fields
}

func (*LuxceptionEffect) Apply

func (e *LuxceptionEffect) Apply(intensities []float64) []byte

type RainbowEffect

type RainbowEffect struct {
	// contains filtered or unexported fields
}

func (*RainbowEffect) Apply

func (e *RainbowEffect) Apply(intensities []float64) []byte

type SolidColorEffect

type SolidColorEffect struct {
	// contains filtered or unexported fields
}

func (*SolidColorEffect) Apply

func (e *SolidColorEffect) Apply(intensities []float64) []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳