Skip to content
Ben Bowles edited this page Jan 31, 2022 · 4 revisions

Values

Settings

Value Value Description
width 300 / 3 width of field
height 160 / 3 height of field
hash_distance 60 / 3 hash distance on field
speed .01 speed of simulation
scale 3 scale of field
x_offset width / 2 automatically calculated offset
y_offset height / 2 automatically calculated offset

Simulation Control

Name Default Description
move true move or not
path true show path or not
show true show objects or not

Simulation

Name Default Description
stack [] Array of objects
maxSet 0 greatest set of objects in array
currentSet 0 current set
nextSet 1 next set
lerpNum 0.0 used to move
mp { x: 0 y: 0 } mouse position

ELements

Name Description
playPause play pause button element
debugP debug p element
pathController path checkbox
ieArea import export text area
c Canvas Element
ctx Canvas Rendering Context

Styles

Name Description
bg #00870
ln #fffff
ydln10w 1
ydln5w .5
hlnw 3
fontSize 5
Clone this wiki locally