script editor
This commit is contained in:
@@ -7,9 +7,9 @@ import (
|
||||
)
|
||||
|
||||
type Solid struct {
|
||||
States []device.State `json:"states,omitempty"`
|
||||
AnimationMS int64 `json:"animationMs,omitempty"`
|
||||
Interleave int `json:"interleave,omitempty"`
|
||||
States []device.State `json:"states"`
|
||||
AnimationMS int64 `json:"animationMs"`
|
||||
Interleave int `json:"interleave"`
|
||||
}
|
||||
|
||||
func (e Solid) State(_, length, round int) device.State {
|
||||
|
||||
+4
-4
@@ -7,10 +7,10 @@ import (
|
||||
)
|
||||
|
||||
type Gradient struct {
|
||||
States []device.State `json:"states,omitempty"`
|
||||
AnimationMS int64 `json:"animationMs,omitempty"`
|
||||
Reverse bool `json:"reverse,omitempty"`
|
||||
Interpolate bool `json:"interpolate,omitempty"`
|
||||
States []device.State `json:"states"`
|
||||
AnimationMS int64 `json:"animationMs"`
|
||||
Reverse bool `json:"reverse"`
|
||||
Interpolate bool `json:"interpolate"`
|
||||
}
|
||||
|
||||
func (e Gradient) State(index, length, round int) device.State {
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@ import (
|
||||
)
|
||||
|
||||
type Pattern struct {
|
||||
States []device.State `json:"states,omitempty"`
|
||||
AnimationMS int64 `json:"animationMs,omitempty"`
|
||||
States []device.State `json:"states"`
|
||||
AnimationMS int64 `json:"animationMs"`
|
||||
}
|
||||
|
||||
func (e Pattern) State(index, _, round int) device.State {
|
||||
|
||||
+3
-3
@@ -8,9 +8,9 @@ import (
|
||||
)
|
||||
|
||||
type Random struct {
|
||||
States []device.State `json:"states,omitempty"`
|
||||
Interpolate bool `json:"interpolate,omitempty"`
|
||||
AnimationMS int64 `json:"animationMs,omitempty"`
|
||||
States []device.State `json:"states"`
|
||||
Interpolate bool `json:"interpolate"`
|
||||
AnimationMS int64 `json:"animationMs"`
|
||||
}
|
||||
|
||||
func (e Random) State(_, _, _ int) device.State {
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type VRange struct {
|
||||
States []device.State `json:"states,omitempty"`
|
||||
States []device.State `json:"states"`
|
||||
Variable string `json:"variable"`
|
||||
Min float64 `json:"min"`
|
||||
Max float64 `json:"max"`
|
||||
|
||||
Reference in New Issue
Block a user