Skip to content
AndyKrause95Public

About

Simple LavaLamp effect in JavaScript using Canvas.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Lavalamp

Simple LavaLamp effect in JavaScript using Canvas.

Logic:

  • bottom is heat-source
  • bubbles have buoyancy
  • buoyancy increases with heat
  • heat 'charges' while being closer to the bottom
  • heat decreases with distance to bottom
  • bubbles are constraint by canvas container
  • bubbles will have a velocity bias going straight up
  • bubbles should not be bouncing around like ping-pong

Implementation

Buoyancy:

  • ???

About

Simple LavaLamp effect in JavaScript using Canvas.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages