feat: pattern editor

This commit is contained in:
2025-10-12 12:28:33 +02:00
parent 9a75b23169
commit cb172595b3
16 changed files with 4816 additions and 3 deletions

View File

@@ -0,0 +1,66 @@
{
"name": "Spiral Rainbow",
"description": "A rotating spiral pattern with rainbow gradient",
"layers": [
{
"type": "pattern",
"pattern": "spiral",
"color": {
"type": "palette",
"stops": [
{
"position": 0.0,
"color": "ff0000"
},
{
"position": 0.17,
"color": "ff8800"
},
{
"position": 0.33,
"color": "ffff00"
},
{
"position": 0.5,
"color": "00ff00"
},
{
"position": 0.67,
"color": "0088ff"
},
{
"position": 0.83,
"color": "8800ff"
},
{
"position": 1.0,
"color": "ff0088"
}
]
},
"params": {
"centerX": 8,
"centerY": 8,
"arms": 5,
"rotationSpeed": 1.0
}
}
],
"parameters": {
"speed": {
"type": "range",
"min": 0.1,
"max": 3.0,
"step": 0.1,
"default": 1.0
},
"brightness": {
"type": "range",
"min": 0.1,
"max": 1.0,
"step": 0.1,
"default": 1.0
}
}
}