If you learned processing before, you will find this is really easy. Just use python instead of java to write code. If you don’t know processing, don’t worry, it won’t be very hard.
You need to define two functions in order to let processing.py run. The first is setup
function, this function will invoke by processing when your application launches. It will only execute once. You need to put size(width, height)
function in this function to set the width and height of the window.
The second function you need to define is draw
function. This function will invoke by processing 60 times per second to create images on the screen.
For more tutorials for Processing.py, you can move to https://py.processing.org/tutorials/.