Documentation
pyDraw
Quick Reference.
Examples and explanations for the classes and methods used in most pyDraw programs.
Quick StartBuild your first scene.
Quick ReferenceUnderstand everyday features.
Full APIInspect every available detail.
Quick Reference
Reference categories
Select a category for its methods, examples, and important behavior.
Screen
Create the canvas, manage its contents, connect input, and control the lifetime of a program.
- Setup
- Coordinates
- Lifecycle
- Objects
- Dialogs
- Grids
Color & Location
Use pyDraw's small value objects for readable colors and reusable coordinates.
- Color names
- RGB & hex
- Coordinates
- Movement
- Distance
Renderable
Understand the shared behavior behind rectangles, ovals, triangles, polygons, and other shapes.
- Shapes
- Movement
- Rotation
- Style
- Geometry
- Trails
- Groups
Text
Display and update labels with fonts, sizing, alignment, and decoration.
- Content
- Measurement
- Alignment
- Typography
- Rotation
- Geometry
Line & Pen
Draw fixed line segments or build paths that follow direct movement and moving objects.
- Endpoints
- Movement
- Rotation
- Dashes
- Intersections
- Paths
- Trails
Image
Load image assets, resize and tint them, flip their axes, and control animated GIF frames.
- Assets
- Sizing
- Transforms
- Tinting
- Flipping
- GIF frames
Input
Respond to keyboard and pointer events using pyDraw's automatic handler registration.
- Keyboard
- Mouse
- Dragging
- Registration
- Ordering
Scene
Package setup, updates, and input into reusable menus, levels, or application states.
- Lifecycle
- Activation
- Input
- State changes
Complete API reference
View every class, method, parameter, return type, and exact signature generated from the current Python source.
Browse the generated API