Cauldron2D.Easel.Web.EditorLive (Cauldron2D.Easel.Web v0.1.0)

Copy Markdown View Source

The atlas editor in a browser: the arts of a directory, and one of them on a canvas with the palette, the tools and the frames beside it. The document is a Cauldron2D.Easel held here; the browser draws it and sends back where the pointer paints.

Mounted by Cauldron2D.Easel.Web.Router.easel/2; the session carries "dir", "tile" and, when saves should install the directory as an atlas, "atlas".

Keys

The pointer paints with the tool in hand. b brush, l line, r rectangle, R filled rectangle, f fill, e eraser; 19 pick a colour; h/v flip, t/T turn, arrows shift; ,/. frame before or after, a adds one, d duplicates, x drops; o onion skin, p plays; u undoes, U redoes; s saves, w saves and installs. Every one of them is also a button.

Summary

Functions

What the canvas hook draws: Cauldron2D.Easel.View.payload/2 for the frame shown, the ghost under it when onion skin is on and playback off.

The tools with their keys, in order.

Functions

frame_payload(assigns)

@spec frame_payload(map()) :: map()

What the canvas hook draws: Cauldron2D.Easel.View.payload/2 for the frame shown, the ghost under it when onion skin is on and playback off.

tools()

@spec tools() :: keyword()

The tools with their keys, in order.