Melbourne Art School
Creative coding3 minute read

Want to learn creative coding? Here’s the plan nobody gives beginners

An artist-first path into creative coding: the six ideas to learn first, a four-week plan, the best free resources, and where to learn in Melbourne.

Grid of twelve photographs showing a galloping horse and rider frame by frame
Eadweard Muybridge, The Horse in Motion, 1878. Public domain, via Wikimedia Commons. Muybridge broke motion into frames. Animation in code works the same way.

Key takeaways

  • Start with p5.js: it runs in the browser, it’s free, and it was designed for artists and beginners.
  • Six ideas cover most beginner work: shapes, colour, variables, loops, randomness and interaction.
  • Fifteen minutes a day for four weeks will get you making your own generative work.

Most programming courses are built to train software engineers. If you want to make art with code, you need a different route: one that starts with pictures, not data structures. Here it is.

Start with p5.js

p5.js is a free JavaScript library made for artists, designers and beginners. You can write code in the free web editor and see your drawing appear instantly, with nothing to install. Everything you learn transfers to other tools later.

The six ideas to learn first

  1. Coordinates and shapes: every drawing is shapes placed on an x and y grid.
  2. Colour: fill, stroke and transparency.
  3. Variables: names for numbers, so you can change one value and alter the whole picture.
  4. Loops: repeat an action hundreds of times, which is where generative art gets its richness.
  5. Randomness and noise: controlled chance. Perlin noise, created by Ken Perlin in the 1980s, gives smooth, natural-looking variation.
  6. Interaction: responding to the mouse, keyboard or time.

A four-week plan, fifteen minutes a day

Week 1: draw with code

Recreate a simple drawing, such as a face or a building, using only shapes and colour.

Week 2: repetition and chance

Use loops and random numbers to fill the canvas with hundreds of marks. Make ten variations by changing one number at a time.

Week 3: motion and interaction

Animate something, then make it respond to your mouse.

Week 4: make a series

Choose one idea and make five finished pieces from it. Export them as images and print your favourite.

The best free resources

  • The Coding Train: Daniel Shiffman’s friendly video tutorials, the most popular way to learn p5.js.
  • The Nature of Code: Shiffman’s free online book on simulating nature with code, for when you’re ready to go deeper.
  • The p5.js reference: every function, with examples you can edit.
  • OpenProcessing: thousands of sketches by other artists that you can read, run and remix.

How long does it take?

You can make your first generative drawing in an hour. With regular practice, most people feel comfortable making their own ideas within a few months. Like drawing, it’s practice rather than talent that counts.

Why learn with other people

Self-teaching works, but it’s slow when you get stuck on a missing bracket at 11 pm. In a class you get unstuck in seconds, see what others make from the same prompt, and get critique that pushes your work further.

Creative coding classes in Melbourne

In-person creative coding classes for adults are surprisingly hard to find in Melbourne. When we looked, most of what came up was coding for kids, career bootcamps or occasional one-off workshops. That gap is why we started Creative Coding: Art with Code: four evenings in Brunswick, for artists and curious beginners.

References and further reading

  1. p5.js
  2. The Coding Train
  3. The Nature of Code
  4. OpenProcessing
  5. Perlin noise on Wikipedia
  6. Eadweard Muybridge on Wikipedia
Alex Gibson, founder of Melbourne Art School, in a black-and-white portrait wearing headphones

Alex Gibson

I’m an artist and creative technologist with a Master of Fine Arts, and the founder of Melbourne Art School. My work moves between pencils, plotters, code and live printmaking performance, and I teach drawing and creative coding in small evening classes in Brunswick.

More about me and the school

Stay curious.

Hear about new classes, workshops, artist talks and creative ideas from our studio.

Unsubscribe anytime. Read our privacy policy.