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

Renderer for desktop. This is part of the reference section.

Purpose

Renderer for desktop like Linux, Apple's macOS, and Microsoft's Windows.

Snippet

Create a new Pygame-based sketch two different ways.
sketch_minimum = sketchingpy.Sketch2DApp(500, 500)
sketch = sketchingpy.Sketch2DApp(500, 500, 'Window Title')

Parameters

  • width: The horizontal size of the sketch in pixels.
  • height: The vertical size of the sketch in pixels.
  • target: Optional title for the window. If excluded, will use a default.
  • loading: Ignored, reserved for future use. Can be excluded.

Availability

Requires installation of Pygame.

See also