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

PaintedGradientOptions

A vertical gradient a painted surface’s colour is multiplied by: the bottom colour at and below one height, the top colour at and above another, eased between, so the band’s ends show no line.

Property Type Description
bottomColor ColorRepresentation The colour at and below bottomHeight, such as a trunk’s dark foot.
bottomHeight number The height the gradient starts at, in space.
space? GradientSpace Where the heights are measured. Left out, GradientSpace.Model.
topColor ColorRepresentation The colour at and above topHeight, such as a crown’s lit top.
topHeight number The height the gradient ends at, above bottomHeight.