Skip to content

Instantly share code, notes, and snippets.

@maruel
Created November 1, 2016 13:43
Show Gist options
  • Save maruel/6d2002195c1199b8a1f1c0039eff0a55 to your computer and use it in GitHub Desktop.
Save maruel/6d2002195c1199b8a1f1c0039eff0a55 to your computer and use it in GitHub Desktop.
halloween 2016 dlibox animations
#### IDLE
## Tree: Orange stars
{
"C": "#ff9000",
"_type": "NightStars"
}
## Porch: Strobe only part of the strip + Orange glow
{
"Left": {
"Curve": "ease-in-out",
"Patterns": [
"#ffa900",
"#1f0f00"
],
"ShowMS": 0,
"TransitionMS": 1000,
"_type": "Loop"
},
"Offset": "66.66%",
"Right": {
"Curve": "steps(1,end)",
"Patterns": [
"#ffffff",
"#000000",
"#ffffff",
"#000000",
"#000000",
"#ffffff",
"#000000",
"#000000",
"#000000",
"#000000"
],
"ShowMS": 100,
"TransitionMS": 0,
"_type": "Loop"
},
"_type": "Split"
}
## Coffin: Dark green
"#1a5e1f"
# Cooking pot: Rotating orange
{
"Curve": "ease-out",
"Patterns": [
{
"Patterns": [
{
"Child": {
"Child": {
"Curve": "direct",
"Left": "#ffa900",
"Right": "#000000",
"_type": "Gradient"
},
"Length": 16,
"Offset": 0,
"_type": "Subset"
},
"MovePerHour": 108000,
"_type": "Rotate"
},
{
"_type": "Aurore"
}
],
"_type": "Add"
},
{
"Patterns": [
{
"_type": "Aurore"
},
{
"C": "#ffffff",
"_type": "NightStars"
}
],
"_type": "Add"
}
],
"ShowMS": 10000,
"TransitionMS": 5000,
"_type": "Loop"
}
#### INCOMING
## Tree: Black.
"#000000"
# Porch: Strobe only part of the strip + Bright white
{
"Left": "#ffffff",
"Offset": "66.66%",
"Right": {
"Curve": "steps(1,end)",
"Patterns": [
"#ffffff",
"#000000",
"#ffffff",
"#000000",
"#000000",
"#ffffff",
"#000000",
"#000000",
"#000000",
"#000000"
],
"ShowMS": 100,
"TransitionMS": 0,
"_type": "Loop"
},
"_type": "Split"
}
## Coffin: Black
"#000000"
## Cooking pot: Rotating red
{
"Curve": "ease-out",
"Patterns": [
{
"Patterns": [
{
"Child": "Lff0000ff0000ee0000dd0000cc0000bb0000aa0000990000880000770000660000550000440000330000220000110000",
"MovePerHour": 108000,
"_type": "Rotate"
},
{
"_type": "Aurore"
}
],
"_type": "Add"
},
{
"Patterns": [
{
"_type": "Aurore"
},
{
"C": "#ffffff",
"_type": "NightStars"
}
],
"_type": "Add"
}
],
"ShowMS": 10000,
"TransitionMS": 5000,
"_type": "Loop"
}
#### PORCH
## Tree: Lightning strikes
{
"Curve": "",
"Patterns": [
{
"Curve": "steps(1,end)",
"Patterns": [
"#ffffff",
"#000000",
"#ffffff",
"#000000",
"#000000",
"#ffffff",
"#000000",
"#000000",
"#000000",
"#000000"
],
"ShowMS": 100,
"TransitionMS": 0,
"_type": "Loop"
},
{
"C": "#ff9000",
"_type": "NightStars"
},
{
"C": "#ff9000",
"_type": "NightStars"
},
{
"C": "#ff9000",
"_type": "NightStars"
}
],
"ShowMS": 5000,
"TransitionMS": 1000,
"_type": "Loop"
}
-- or --
{
"Center": 50,
"HalfWidth": 75,
"Intensity": 255,
"StartMS": 0,
"_type": "Lightning"
}
## Porch: Dim flicker
{
"Curve": "steps(1,end)",
"Patterns": [
"#0f0f0f",
"#000000",
"#0f0f0f",
"#000000",
"#000000",
"#0f0f0f",
"#000000",
"#000000",
"#000000",
"#000000"
],
"ShowMS": 100,
"TransitionMS": 0,
"_type": "Loop"
}
## Coffin: Green-orange
{
"Left": {
"Curve": "ease-out",
"Patterns": [
"#000f00",
"#00ff00",
"#1f0f00",
"#ffa900"
],
"ShowMS": 100,
"TransitionMS": 700,
"_type": "Loop"
},
"Offset": "50%",
"Right": {
"Curve": "ease-out",
"Patterns": [
"#1f0f00",
"#ffa900",
"#000f00",
"#00ff00"
],
"ShowMS": 100,
"TransitionMS": 700,
"_type": "Loop"
},
"_type": "Split"
}
## Cooking pot: Red alert
{
"Curve": "ease-out",
"Patterns": [
"#ff0000",
"#0f0000"
],
"ShowMS": 10,
"TransitionMS": 100,
"_type": "Loop"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment