light

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

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

Basic represents a light with the base game's attributes. Lighting events created by Basic do not set _customData._lightID.

func NewBasic

func NewBasic(ctx MaxLightIDer, t evt.LightType) Basic

func (Basic) LightIDLen

func (l Basic) LightIDLen() int

func (Basic) LightIDSequenceTransform

func (l Basic) LightIDSequenceTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Basic) LightIDTransform

func (l Basic) LightIDTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Basic) Name added in v0.0.6

func (l Basic) Name() []string

func (Basic) NewRGBLighting

type Combined

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

func Combine

func Combine(lights ...context.Light) Combined

func (*Combined) Add

func (c *Combined) Add(lights ...context.Light)

func (Combined) LightIDLen

func (c Combined) LightIDLen() int

func (Combined) LightIDSetTransform added in v0.0.7

func (c Combined) LightIDSetTransform(fn func(lightid.Set) lightid.Set) context.Light

func (Combined) LightIDTransform added in v0.0.7

func (c Combined) LightIDTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Combined) Name added in v0.0.6

func (c Combined) Name() []string

func (Combined) NewRGBLighting

type Composite

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

func NewComposite

func NewComposite(t evt.LightType, set lightid.Set) Composite

func (Composite) LightIDLen

func (l Composite) LightIDLen() int

func (Composite) LightIDSequenceTransform

func (l Composite) LightIDSequenceTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Composite) LightIDSetSequenceTransform

func (l Composite) LightIDSetSequenceTransform(fn func(lightid.Set) lightid.Set) context.Light

func (Composite) LightIDSetTransform

func (l Composite) LightIDSetTransform(fn func(lightid.Set) lightid.Set) context.Light

func (Composite) LightIDTransform

func (l Composite) LightIDTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Composite) Name added in v0.0.6

func (l Composite) Name() []string

func (Composite) NewRGBLighting

type Custom

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

func NewCustom

func NewCustom(t evt.LightType, len, offset int) Custom

func NewCustomFromLightIDs added in v0.0.12

func NewCustomFromLightIDs(t evt.LightType, ids ...int) Custom

func NewCustomFromRange added in v0.0.6

func NewCustomFromRange(t evt.LightType, startID, endID int) Custom

func (Custom) LightIDLen

func (c Custom) LightIDLen() int

func (Custom) LightIDSequenceTransform

func (c Custom) LightIDSequenceTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Custom) LightIDTransform

func (c Custom) LightIDTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Custom) Name added in v0.0.6

func (c Custom) Name() []string

func (Custom) NewRGBLighting

type LightIDSequenceTransformableLight

type LightIDSequenceTransformableLight interface {
	LightIDSequenceTransform(func(lightid.ID) lightid.Set) context.Light
}

type LightIDSetSequenceTransformableLight

type LightIDSetSequenceTransformableLight interface {
	LightIDSetSequenceTransform(func(lightid.Set) lightid.Set) context.Light
}

type LightIDSetTransformableLight

type LightIDSetTransformableLight interface {
	LightIDSetTransform(func(lightid.Set) lightid.Set) context.Light
}

type LightIDTransformableLight

type LightIDTransformableLight interface {
	LightIDTransform(func(lightid.ID) lightid.Set) context.Light
}

type MaxLightIDer

type MaxLightIDer interface {
	MaxLightID(t evt.LightType) int
}

type Sequence

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

func NewSequence

func NewSequence(lights ...context.Light) Sequence

func (*Sequence) Add

func (s *Sequence) Add(lights ...context.Light)

func (Sequence) Idx

func (s Sequence) Idx(i int) context.Light

func (Sequence) Len

func (s Sequence) Len() int

func (Sequence) LightIDLen

func (s Sequence) LightIDLen() int

func (Sequence) LightIDSequenceTransform

func (s Sequence) LightIDSequenceTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Sequence) LightIDSetSequenceTransform

func (s Sequence) LightIDSetSequenceTransform(fn func(lightid.Set) lightid.Set) context.Light

func (Sequence) LightIDSetTransform

func (s Sequence) LightIDSetTransform(fn func(lightid.Set) lightid.Set) context.Light

func (Sequence) LightIDTransform

func (s Sequence) LightIDTransform(fn func(lightid.ID) lightid.Set) context.Light

func (Sequence) Lights

func (s Sequence) Lights() []context.Light

func (Sequence) Name added in v0.0.6

func (s Sequence) Name() []string

func (Sequence) NewRGBLighting

func (Sequence) Shuffle

func (s Sequence) Shuffle() Sequence

func (Sequence) Slice

func (s Sequence) Slice(i, j int) Sequence

Jump to

Keyboard shortcuts

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