Color Sequence Effect
Format
{
"Type": "ColorSequenceEffect",
"Config": {
"Sequence": [<ColorSequenceEntry>],
"ColorGenerationMethod": <enum>,
"Trigger": <Trigger>
}
}
ColorSequenceEntry
{
"TransitionTime": <int>,
"HoldTime": <int>,
"Color": <LedColorProvider>
}
Variables
TransitionTime
Determines transition time to the next sequence entry. The colors will be blended from current to next sequence entry while in transition state.
Allowed values: Value in milliseconds.
Required: No
Default value:
1000
Example:
"TransitionTime": "500"
HoldTime
Determines hold time of the current sequence entry colors.
Allowed values: Value in miliseconds.
Required: No
Default value:
1000
Example:
"HoldTime": "500"
Color
A Led Color Provider object with colors when the pulse is in full brightness.
Required: Yes
Default value:
Example:
{
"Gradient": [
[0, [255, 0, 0]],
[0.5, [0, 255, 0]],
[1.0 [255, 0, 0]]
]
}
ColorGenerationMethod
Tells the effect how to generate colors for multiple devices. The actual behaviour is depended on the effect implementation.
Allowed values:
"PerPort"
- Duplicates the effect on each device."SpanPorts"
- Treats multiple devices as one.
Required: No
Default value:
"PerPort"
Example:
"ColorGenerationMethod": "SpanPorts"
Trigger
Instance of a Trigger plugin.
Required: Yes
Default value:
Example:
"Trigger": {
"Type": "AlwaysTrigger"
}
Example