Melbourne Art School

Free creative coding workbook · PDF, 19 pages

Art with Codein 7 Days

Seven short sketches in p5.js for adult beginners. Fifteen minutes a day, all in your web browser, nothing to install. On day seven you make the same self-portrait again, and see what a week of code can do.

Free. We’ll email you a copy too, and you’ll get Studio Notes, our newsletter about drawing, code and art, every second Thursday. Unsubscribe anytime. Read our privacy policy.

Cover of the workbook Art with Code in 7 Days: a blue square filled with looping white circles that trace a figure-of-eight

Seven days, seven ideas

Artists have drawn with code since the 1960s, because it’s good at what hands are bad at: repeating something a thousand times, changing it a little each time, leaving decisions to chance, and making pictures that move. Each day teaches one of those ideas.

Every day follows the same rhythm: type the code, change the numbers until something surprises you, then keep the version you like best.

  1. 0The before sketchA record of where you’re starting from10 min
  2. 1Graph paperPlacing shapes with x and y15 min
  3. 2Homage to the squareMixing colour from red, green and blue light15 min
  4. 3One square, 81 timesRepetition with for loops15 min
  5. 410 PRINTRules plus chance15 min
  6. 5The pendulumAnimation: drawings that change over time15 min
  7. 6Your own brushInteraction with the mouse and keyboard20 min
  8. 7The self-portrait, againPutting all of it together25 min

Look inside

Each day has the code to type, a picture of what it makes, ideas for changing it, and why it works. Plus a one-page p5.js cheat sheet. Want to try one now? Run day one in the code playground.

Workbook page: a table of the seven days, the exercise, what it trains and how long it takes
The week at a glance
Workbook page for day one, with p5.js code beside a black circle, white rectangle and grey triangle poster
Day 1: Graph paper
Workbook page for day four, with code beside a maze of white diagonal lines on blue
Day 4: 10 PRINT
Workbook page for day six, with brush code beside a lemon drawn in thick-and-thin strokes
Day 6: Your own brush
Workbook page with a checklist for comparing the day zero and day seven self-portraits
Before and after

Who it’s for

You’ve never written code

You need a laptop, a web browser and fifteen minutes. No maths, no installs and no experience required. If you can type and change a number, you can do this.

You think code isn’t for artists

Artists from Vera Molnár to Sol LeWitt have made work from rules and code since the 1960s. Code is a pencil with a few extra powers, and p5.js was made for artists.

You’re thinking about a class

Try it at home first. It covers the first ideas of our beginner course, Creative Coding: Art with Code.

Alex Gibson, founder and teacher at Melbourne Art School

From the teacher

“Code is good at things hands are bad at: repeating something a thousand times, changing it a little each time, and making pictures that move and answer back. Make your self-portrait on day zero and again on day seven, and you’ll see what a week of code can do.”

Alex Gibson, artist, creative technologist and founder of Melbourne Art School. About the school

Fifteen minutes. One browser tab.
Start tonight.

Get the free workbook