(create-entities width height count _variant & _rest)Create an array of star entities.
Create an array of star entities.
(draw! ctx stars _width _height colors time)Render stars to a 2D canvas context.
Render stars to a 2D canvas context.
(draw-static! ctx stars _width _height colors)Render a single static frame (prefers-reduced-motion).
Render a single static frame (prefers-reduced-motion).
(update-entities! stars dt speed-multiplier width height variant)Update star positions/brightness each frame.
Update star positions/brightness each frame.
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 |