Snapshot

data class Snapshot(val entities: List<DrawableEntity>)

The drawing at one moment: every shape, in drawing order. The shapes are immutable, so a snapshot is not a copy of anything, it is the list itself, and holding one costs nothing. To keep one beyond the run of the app, write it with the serialization module (DrawJson).

Two snapshots are what Morph works between and what a SnapshotTransition plays from one to the other.

Constructors

Link copied to clipboard
constructor(entities: List<DrawableEntity>)

Properties

Link copied to clipboard