Welcome to the p5 documentation!

https://img.shields.io/github/release/p5py/p5.svg https://img.shields.io/pypi/l/p5.svg https://img.shields.io/github/stars/p5py/p5.svg?style=social&label=Star

p5 provides high level drawing functionality to help you quickly create simulations and interactive art using Python. It combines the core ideas of Processing — learning to code in a visual context — with Python’s readability to make programming more accessible to beginners, educators, and artists.

The p5 documentation is organized into the following sections:

  • Tutorials take you through a series of steps to create multiple p5 sketches and introduce you to the most common features. Ideally you should start here if you have never worked with Processing and/or p5.
  • Guides provide background information on p5 concepts and discuss topics at a high level. Unlike tutorials, the guides do not have step-by-step instructions and assume a basic understanding of p5 and/or Processing.
  • The Reference provides a detailed overview of the complete p5 api. Code examples accompanying the reference can be found in the references directory in the p5 examples.

In addition to this documentation, we’ve also written and ported many Processing examples and reference sketches to p5. Visit the examples repository or download a zip with all the examples.

Before you begin make sure you go through the Installation pages to get started. If have programmed in Processing before, you should also take a look at the p5 for Processing users guide. The API reference also notes differences from the Processing API.

p5 is free and open source software and has been released under the GPL3 license. All development work happens on the Github repository. If you would like to report a bug, request additional features, or would like to help out in general, please take a look at the CONTRIBUTING file on the project repository on Github.