docs: Add cycle effect examples and documentation

- Document "cycle" effect for revolving lights
- Add Police Lights and Ocean Wave cycle examples
- Add effect_notes section explaining each effect
- Add police_red and police_blue to preset colors
This commit is contained in:
2026-04-06 16:38:44 +10:00
parent 26608de850
commit 40fd25e14b
+28 -2
View File
@@ -2,7 +2,11 @@
"_comment": "Tag color mappings for LEGO Dimensions Portal Client", "_comment": "Tag color mappings for LEGO Dimensions Portal Client",
"_instructions": [ "_instructions": [
"Map legacy keys to colors and effects", "Map legacy keys to colors and effects",
"Effects: 'solid', 'pulse', 'flash'", "Effects: 'solid', 'pulse', 'flash', 'cycle'",
" - solid: Constant color on the pad",
" - pulse: Smooth breathing/fading effect",
" - flash: Blinking on/off",
" - cycle: Revolving lights across ALL pads (like police lights!)",
"Colors: [R, G, B] values 0-255", "Colors: [R, G, B] values 0-255",
"Speed: 0.2 (very fast) to 3.0 (slow), 1.0 = normal", "Speed: 0.2 (very fast) to 3.0 (slow), 1.0 = normal",
"Run the portal client to discover tag legacy keys", "Run the portal client to discover tag legacy keys",
@@ -34,9 +38,29 @@
"effect": "flash", "effect": "flash",
"speed": 0.5, "speed": 0.5,
"name": "Fast Flash Example" "name": "Fast Flash Example"
},
"9876543210": {
"color": [255, 0, 0],
"effect": "cycle",
"speed": 0.5,
"name": "Police Lights (Red Cycle)"
},
"1111111111": {
"color": [0, 100, 255],
"effect": "cycle",
"speed": 1.0,
"name": "Ocean Wave (Blue Cycle)"
} }
}, },
"_effect_notes": {
"_comment": "Effect behavior details",
"solid": "Simple constant color - most power efficient",
"pulse": "Smooth fade in/out breathing effect",
"flash": "Sharp on/off blinking",
"cycle": "Rotates color through CENTER → LEFT → RIGHT pads. Great for special characters! Speed controls how fast it rotates."
},
"_preset_colors": { "_preset_colors": {
"_comment": "Reference colors you can copy/paste", "_comment": "Reference colors you can copy/paste",
"red": [255, 0, 0], "red": [255, 0, 0],
@@ -53,6 +77,8 @@
"forest_green": [0, 255, 100], "forest_green": [0, 255, 100],
"ocean_blue": [0, 100, 255], "ocean_blue": [0, 100, 255],
"fire_red": [255, 50, 0], "fire_red": [255, 50, 0],
"ice_blue": [150, 200, 255] "ice_blue": [150, 200, 255],
"police_red": [255, 0, 0],
"police_blue": [0, 0, 255]
} }
} }