P5 Python Docs
Search
K

Simple mode

Use the p5 Python starter template, but without the hassle of starting with setup(), or worrying about the difference between setup() and draw()

Example

background(frameCount%255)
drawTickAxes()
circle(400,bounce(0,height,10),20)

Description

Allows the user to use p5 in the draw function only. This eliminates a lot of the confusion to do with setting up the canvas, or scope of variables.
Of course, this has its downsides - the inability to create tailored dynamic variables or change the size of the canvas are two that come to mind.