p5art

Code Art

P5 is a javascript library created to teach coding to beginners, artists, and designers. It makes drawing with code easier. We are going to use p5 to create an original drawing.

Use these guides to help you learn p5 both in and out of the classroom.

Learning Target

I can use p5.js to create a drawing.

Basics

  1. Introduction
  2. Drawing Circles
  3. Drawing rectangles
  4. Lines
  5. Positioning
  6. Color
  7. Variables
  8. Math
  9. Advanced Shapes

Advanced

  1. Mouse Events - video!
  2. Drawing Hearts - video!
  3. Writing Functions - video!
  4. For Loops

Animations!

  1. Random
  2. Using the frameCount to animate.
  3. Sine and Cosine Motion - video!

Resources