Summary
Welcome to the reference! In here you can find all the details about everything that is available in p6.
- Section Canvas
You can either draw directly in the window (the default) or onto a custom Canvas. - Section Drawing
Draw shapes and control the look of them. - Section Events
You can set those functions as you wish to react to various events. - Section Image
Load and query information about images. - Section Mouse and keyboard info
Query the state of the mouse and keyboard. - Section Math
Mathematical functions and numerical constants. - Section Random
Pick random numbers, points, directions, etc. - Section Text
Write text to the screen. - Section Time
Query time information and control how it elapses. - Section Transform
Allows you to translate / rotate / scale all your drawings at once. - Section Update Flow
Control the update() loop and query information about it. - Section Window
Query the state of the window and control it.