Skip to main content
A drawable that carries custom properties, handed to the visitor of artboard:draw(renderer, visitor). It is only valid inside that visitor call.

Methods

number

The custom number property of this key, nil when there is none.

boolean

The custom boolean property of this key, nil when there is none.

color

The custom color property of this key, nil when there is none.

string

The custom string property of this key, nil when there is none.

properties

Every custom property on the drawable. For tooling and debugging: the editor and rive-cli have it, a shipping runtime does not, so do not call it from a script you ship.

draw

Draws the drawable under the renderer’s current state.