Skip to content

Commit

Permalink
fix: fixed fireworks presets
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Oct 1, 2021
1 parent 9d14ca0 commit 3402e46
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 31 deletions.
22 changes: 11 additions & 11 deletions demo/vanilla/public/presets/fireworks.json
Expand Up @@ -43,16 +43,16 @@
},
"particles": {
"stroke": {
"color": {
"value": [
"#ff595e",
"#ffca3a",
"#8ac926",
"#1982c4",
"#6a4c93"
]
},
"width": 1
"width": 0
},
"color": {
"value": [
"#ff595e",
"#ffca3a",
"#8ac926",
"#1982c4",
"#6a4c93"
]
},
"number": {
"value": 0
Expand All @@ -77,7 +77,7 @@
"type": "circle"
},
"size": {
"value": 1,
"value": 2,
"animation": {
"enable": false
}
Expand Down
10 changes: 5 additions & 5 deletions presets/fireworks/src/options.ts
Expand Up @@ -46,10 +46,10 @@ export const options: ISourceOptions = {
},
particles: {
stroke: {
color: {
value: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"],
},
width: 1,
width: 0,
},
color: {
value: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"],
},
number: {
value: 0,
Expand All @@ -74,7 +74,7 @@ export const options: ISourceOptions = {
type: ShapeType.circle,
},
size: {
value: 1,
value: 2,
animation: {
enable: false,
},
Expand Down
35 changes: 20 additions & 15 deletions website/configs/fireworks.json
Expand Up @@ -43,16 +43,16 @@
},
"particles": {
"stroke": {
"color": {
"value": [
"#5bc0eb",
"#fde74c",
"#9bc53d",
"#e55934",
"#fa7921"
]
},
"width": 1
"width": 0
},
"color": {
"value": [
"#ff595e",
"#ffca3a",
"#8ac926",
"#1982c4",
"#6a4c93"
]
},
"number": {
"value": 0
Expand All @@ -61,11 +61,13 @@
"enable": false
},
"opacity": {
"value": 1,
"value": {
"min": 0.1,
"max": 1
},
"animation": {
"enable": true,
"speed": 0.7,
"minimumValue": 0.1,
"sync": false,
"startValue": "max",
"destroy": "min"
Expand All @@ -75,7 +77,7 @@
"type": "circle"
},
"size": {
"value": 1,
"value": 2,
"animation": {
"enable": false
}
Expand Down Expand Up @@ -110,11 +112,14 @@
"type": "line"
},
"size": {
"value": 50,
"value": {
"min": 0.1,
"max": 50
},
"animation": {
"enable": true,
"sync": true,
"speed": 150,
"speed": 90,
"startValue": "max",
"destroy": "min"
}
Expand Down

0 comments on commit 3402e46

Please sign in to comment.