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