An easel as a browser canvas draws it: the frame in hand as CSS colours, the frame before it as a ghost, the palette, and the frames' count and rate. What the LiveView editor and the notebook editor both send to their script.
Cauldron2D.Easel.View.payload(easel, zoom: 16, onion: true)
Summary
Functions
A colour as CSS: #rrggbb, rgba(...) for a translucent one, nil for none.
The payload for easel.
Functions
@spec css(Cauldron2D.Easel.rgba() | nil) :: String.t() | nil
A colour as CSS: #rrggbb, rgba(...) for a translucent one, nil for none.
@spec payload(Cauldron2D.Easel.t(), keyword()) :: map()
The payload for easel.
Options
:zoom— pixels a picture pixel on the canvas. Default16:onion— show the frame before as a ghost. Defaultfalse:shown— the frame to draw instead of the one in hand, for playback. Default none