Reference for clear
Clear the sketch to a color. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
clear
Text
Transform
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.