(create-entities width height count _variant & _rest)Create an array of bubble entities.
Create an array of bubble entities.
(draw! ctx bubbles _width _height colors _time)Render bubbles to a 2D canvas context.
Render bubbles to a 2D canvas context.
(draw-static! ctx bubbles width height colors)Render a single static frame (prefers-reduced-motion).
Render a single static frame (prefers-reduced-motion).
(update-entities! bubbles dt speed-multiplier width height _variant)Update bubble positions each frame. Bubbles float upward and wrap around.
Update bubble positions each frame. Bubbles float upward and wrap around.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |