🧪 Version 0.3.1 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for clear

Clear the sketch to a color. This is part of the reference section.

Purpose

Peform the equivalent of drawing a rectangle the size of the sketch without stroke and with the given fill color.

Snippet

Clear the sketch and set the background to a grey color.
sketch.clear('#C0C0C0')

Parameters

  • color: The color to use in clearing.

Availability

Available for all platforms.

See also