Constructors
constructor
- new default(context: default, worldRenderer: default, maxParticles?: number): default
-
Parameters
-
-
worldRenderer: default
-
maxParticles: number = 256
Properties
Readonly
dataPerParticle
dataPerParticle: 10 = 10
Readonly
particles
particles: Float32Array
Methods
clear
- clear(): void
-
Returns void
create
- create(tile: default, particle: IRGB, count?: number, intensity?: number): undefined | number[]
-
Parameters
-
-
particle: IRGB
-
count: number = 1
-
intensity: number = 5
Returns undefined | number[]
delete
- delete(): void
-
Returns void
render
- render(x: number, y: number): boolean
-
Returns boolean
update
- update(timeStamp: number): void
-
Returns void
Static
initializePrograms
- initializePrograms(webGlContext: default): Promise<void>
-
Returns Promise<void>