feat: pattern editor
This commit is contained in:
66
presets/examples/spiral-rainbow.json
Normal file
66
presets/examples/spiral-rainbow.json
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user