Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.19 KB

File metadata and controls

23 lines (12 loc) · 1.19 KB

py5 Examples Adapted from py5bot Site

py5 is a Python 3.8+ version of Processing, a platform for visual art.

This repo is for py5 code adapted from the py5bot website. The code on that webpage requires the py5bot Jupyter kernel to run. Here, the code examples have been modified to py5's Module Mode so that they can be run without the need for the py5bot Jupyter kernel.

Examples

The 1st code example in this repo produces this:

white square on yellow background

The 2nd code example in this repo produces a random iteration of this:

randomly positioned and randomly colored squares

The 3rd code example in this repo shows that you can include a print() statement and produces this:

red square

The 4th code example in this repo produces a random iteration of this:

randomly positioned and randomly sized circles