Reference begin()

begin()

This API is experimental

Its behavior may change in a future version of p5.js.

Starts capturing drawing commands into this shape container.

Options:

  • draw (Boolean, optional): If true, drawing commands will be drawn onto the canvas in addition to being recorded. If false (default), commands are recorded silently without rendering.

Examples

Syntax

begin([options])

Parameters

options
Object: recording options.

Related References