Liking cljdoc? Tell your friends :D

baredom.components.x-kinetic-canvas.matrix


create-entitiescljs

(create-entities width height count _variant char-sz)

Create an array of column entities for matrix rain. char-sz sets the font size used for spacing calculations.

Create an array of column entities for matrix rain.
`char-sz` sets the font size used for spacing calculations.
sourceraw docstring

default-char-sizecljs

source

draw!cljs

(draw! ctx columns _width height colors _time)

Render matrix rain columns to a 2D canvas context.

Render matrix rain columns to a 2D canvas context.
sourceraw docstring

draw-static!cljs

(draw-static! ctx columns 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! columns dt speed-multiplier _width height _variant)

Update column positions and randomly change characters.

Update column positions and randomly change characters.
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