Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

StrokeRun

A stroke drawn point by point, as the editor previews a drag: each point applies only the dabs it adds. The stroke’s end dab is taken back before the next point walks on, so the grid always holds what applyTerrainStroke paints for the points so far.

Property Type Description
change () => TerrainChange Everything the stroke did so far: one undo step.
extend (point) => number[] Adds a point and returns what it changed: the points whose height moved, or for Paint the cells whose paint did.