Liking cljdoc? Tell your friends :D

baredom.components.x-kinetic-canvas.starfield


create-entitiescljs

(create-entities width height count _variant & _rest)

Create an array of star entities.

Create an array of star entities.
sourceraw docstring

draw!cljs

(draw! ctx stars _width _height colors time)

Render stars to a 2D canvas context.

Render stars to a 2D canvas context.
sourceraw docstring

draw-static!cljs

(draw-static! ctx stars _width _height colors)

Render a single static frame (prefers-reduced-motion).

Render a single static frame (prefers-reduced-motion).
sourceraw docstring

update-entities!cljs

(update-entities! stars dt speed-multiplier width height variant)

Update star positions/brightness each frame.

Update star positions/brightness each frame.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close