Methods
clear()
Clears the frame
- Source
renderFrame()
Renders a single frame of the solver
- Source
updateContext(context)
Updates the HTMLCanvas context of each sub-renderer
Parameters:
Name | Type | Description |
---|---|---|
context | context |
- Source
updateRendererParticles(list)
Updates the particles in the particleRenderer
. Must be called every time the list of particles is reassigned.
Parameters:
Name | Type | Description |
---|---|---|
list | Array.<Particle> |
- Source