File tree Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,6 @@ export default function RootLayout({ children }: { children: React.ReactNode }):
24
24
fullScreenOverlay
25
25
options = { {
26
26
rgba : [ 0 , 1 , 0 , 0.5 ] ,
27
- maxParticles : 1000 ,
28
- generationRate : 0.25 ,
29
- angleRage : [ - 2 * Math . PI , 2 * Math . PI ] ,
30
- origin : [ - 1 , - 1 ] ,
31
- speedRange : [ 0.01 , 0.1 ] ,
32
- ageRange : [ 0.01 , 0.5 ] ,
33
- forceField : [ 0 , 0 ] ,
34
27
} }
35
28
/>
36
29
</ body >
Original file line number Diff line number Diff line change @@ -56,13 +56,15 @@ export interface ParticlesOptions {
56
56
}
57
57
58
58
const defaultOptions : ParticlesOptions = {
59
- rgba : [ 1 , 0 , 0 , 1 ] ,
60
- maxParticles : 1000_000 ,
61
- generationRate : 1 ,
62
- forceField : [ 0 , - 0.25 ] ,
63
- angleRage : [ - PI , PI ] ,
64
- speedRange : [ 0.5 , 1 ] ,
65
- ageRange : [ 2 , 10 ] ,
59
+ rgba : [ 1 , 0 , 0 , 0.5 ] ,
60
+ maxParticles : 1000 ,
61
+ generationRate : 0.25 ,
62
+ // setting range from -PI to PI craetes some patches because of overflows
63
+ angleRage : [ - 2 * PI , 2 * PI ] ,
64
+ origin : [ - 1 , - 1 ] ,
65
+ speedRange : [ 0.01 , 0.1 ] ,
66
+ ageRange : [ 0.01 , 0.5 ] ,
67
+ forceField : [ 0 , 0.1 ] ,
66
68
} ;
67
69
68
70
/** generate initial data for the simulation */
You can’t perform that action at this time.
0 commit comments