🧪 Version 0.2.2 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 set_fill

Set the fill color. This is part of the reference section.

Purpose

Set the color to use for filling shapes and figures.

Snippet

Set fill to a red color.
sketch.set_fill('#C00000')

Parameters

  • color: Name of the color or a hex code.

Examples

Availability

Available on all platforms. Currently only hex codes are officially supported.

See also