🧪 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 Sketch2DStatic

Renderer which writes to image. This is part of the reference section.

Purpose

Renderer which can run without displaying the sketch to the user, instead writing directly to a file.

Snippet

Create a new static renderer sketch.
sketch = sketchingpy.Sketch2DStatic(500, 500)

Parameters

  • width: The horizontal size of the sketch in pixels.
  • height: The vertical size of the sketch in pixels.
  • target: Optional and ignored (reserved for future use).
  • loading: Optional and ignored (reserved for future use).

Availability

Requires installation of Pillow.

See also