feat: pattern editor
This commit is contained in:
50
presets/examples/moving-triangle.json
Normal file
50
presets/examples/moving-triangle.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "Moving Triangle",
|
||||
"description": "A triangle moving back and forth with gradient colors",
|
||||
"layers": [
|
||||
{
|
||||
"type": "shape",
|
||||
"shape": "triangle",
|
||||
"position": {
|
||||
"x": 8,
|
||||
"y": 8
|
||||
},
|
||||
"size": {
|
||||
"radius": 4
|
||||
},
|
||||
"color": {
|
||||
"type": "gradient",
|
||||
"color1": "ff00ff",
|
||||
"color2": "00ffff"
|
||||
},
|
||||
"intensity": 1.0,
|
||||
"animation": {
|
||||
"type": "move",
|
||||
"params": {
|
||||
"startX": 3,
|
||||
"startY": 8,
|
||||
"endX": 13,
|
||||
"endY": 8,
|
||||
"duration": 2.0
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"speed": {
|
||||
"type": "range",
|
||||
"min": 0.1,
|
||||
"max": 2.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