Creative Coding with p5.js: Art, Games & Interactive Stories

Creative Coding with p5.js: Art, Games & Interactive Stories

Creative Coding with p5.js: Art, Games & Interactive Stories

Ages 11–14 · Beginner · Live online group, up to 20 kids · $25.53 per class

Next class: Wed, Dec 2 · 9:00 AM US Eastern. Full refund if the first class isn't the right fit.

This course teaches foundational programming with p5.js JavaScript through hands-on projects that combine art and game design. Students learn to draw shapes, apply color and randomness, use variables to animate and track time, handle mouse input, and add conditional behavior to make programs change each run. Instruction progresses in small steps using teacher-provided examples, tinkering, discussion, and collaborative project work.

Class Experience

This beginner course teaches real programming through creative projects that mix art and games, using p5.js JavaScript. Students start by drawing shapes and applying color, then use variables to animate shapes, change their size and color, and track time.

Learners make their programs respond to the mouse and keyboard, add if statements and randomness so each run looks different, and work with text and transparency. Projects include a mirrored kaleidoscope drawing, a click-counting game, and a simple RPG battle with images and collision detection that students can keep expanding.

How classes work

Students meet once a week for eight weeks in 55-minute classes. Each session starts from a teacher-provided example, then students tinker with the code, discuss what changed, and build their own version, sometimes working together, before sharing results with the class.

What we'll cover

  • Class 1: Drawing Shapes in p5.js – Students write their first p5.js sketch and draw circles, rectangles, and lines on a canvas using coordinates.

  • Class 2: Fill, Stroke and Code Syntax – Learners add fill and stroke colors and learn the syntax rules that keep their code running.

  • Class 3: Kaleidoscope with the Mouse Pointer – Students use variables to link shapes to the pointer and create a mirrored kaleidoscope drawing.

  • Class 4: Random Colors That Change Each Run – Learners explore color values and use randomness so their animations look different every time they run.

  • Class 5: Text and Transparency Composition – Students place text on screen, add transparency, and arrange elements into a polished interactive display.

  • Class 6: Click Counter Game with a Timer – Learners build a click-counting game that uses variables to track the score and the time remaining.

  • Class 7: Building an RPG Battle Scene – Students load images and use keyboard input to set up characters for a simple RPG battle.

  • Class 8: RPG Collisions and Project Share – Learners add collision detection and health variables to finish the battle sequence, then share their games.

Learning Outcomes

  • Bullet point

    Use p5.js to draw shapes and apply colors, including randomized colors

  • Bullet point

    Create and modify variables to animate shapes, change size or color, and track time

  • Bullet point

    Apply conditional (if) statements and randomness to make animations behave differently each run

  • Bullet point

    Respond to mouse input by using functions to change shapes, positions, and sizes

  • Bullet point

    Build small interactive projects and simple games combining the above skills

Prerequisites

No coding experience needed; students should be comfortable typing and using a mouse. Have a computer ready with a web browser to use the p5.js editor.

What You'll Need

Supplies
NotebookPencil
Software
P5_JS
Device and internet
Computer (Windows or Mac)Stable internet connectionp5.js Web Editor in a web browser
Websites
openprocessing.org

Students use a notebook and pencil to sketch artwork and game ideas and to plan coordinates before coding them.

Syllabus

8 Lessons

A step-by-step plan of what your child learns, class by class. · 8 Weeks

Drawing Shapes in p5.js

Students write their first p5.js sketch and draw circles, rectangles, and lines on a canvas using coordinates.

Fill, Stroke and Code Syntax

Learners add fill and stroke colors and learn the syntax rules that keep their code running.

Kaleidoscope with the Mouse Pointer

Students use variables to link shapes to the pointer and create a mirrored kaleidoscope drawing.

Click Counter Game with a Timer

Learners build a click-counting game that uses variables to track the score and the time remaining.

Building an RPG Battle Scene

Students load images and use keyboard input to set up characters for a simple RPG battle.

RPG Collisions and Project Share

Learners add collision detection and health variables to finish the battle sequence, then share their games.

Available Times

Next 7 days, US Eastern Time

  • Wed, Dec 2 · 9:00 AM
  • Wed, Dec 2 · 11:00 AM
  • Wed, Dec 2 · 1:00 PM
  • Wed, Dec 2 · 5:00 PM
  • Thu, Dec 3 · 11:00 AM
  • Thu, Dec 3 · 5:00 PM
  • Fri, Dec 4 · 11:00 AM
  • Fri, Dec 4 · 4:00 PM
  • Sat, Dec 5 · 10:00 AM
  • Sat, Dec 5 · 4:00 PM
  • Sun, Dec 6 · 9:00 AM
  • Sun, Dec 6 · 11:00 AM
  • Mon, Dec 7 · 11:00 AM

Parents Often Ask

No coding experience is needed. Students should be comfortable typing and using a mouse. Instruction moves in small steps with teacher-provided examples and tinkering.

A Windows or Mac computer with a stable internet connection and a web browser to use the free p5.js Web Editor.

A mirrored kaleidoscope drawing, random colors that change each run, a text and transparency composition, a click-counting game with a timer, and a simple RPG battle scene with images and collision detection that they can keep expanding.

One 55-minute class each week for eight weeks, starting with drawing shapes and code syntax and ending with RPG collisions and a project share.

Variables for animation and tracking time, if statements, randomness, functions that respond to mouse and keyboard input, and combining these into small games.

Yes. Projects combine art and game design, and students sketch artwork and plan coordinates in a notebook before coding them.

No homework is assigned, and there is no certificate. Projects are coded during the weekly classes, though the RPG battle is designed so students can keep expanding it.

Meet your Instructor

Joined August, 2026

15+

Years

With 15 years of experience teaching JavaScript, Python, Scratch, web development, robotics, and artbotics to children and teens, this educator combines deep content knowledge with classroom-tested pedagogy. Two master's degrees in education with focuses on technology and mathematics education inform project-based, accessible lessons that honour multiple learning styles. Patience and respect for individual strengths guide engaging creative coding sessions that emphasize problem solving, artistic expression, and logical thinking through fun, hands-on projects.

Roblox Lua Animation Scripting: Make Objects Move With Tweens

Intermediate

Level

9–13

Ages

55 min

Duration

1 / Week

Classes

8

Weeks

$21.00per class
See schedule
Scratch Weekly Club: Build a New Game Every Week
Club

Scratch Weekly Club: Build a New Game Every Week

Beginner

Level

6–11

Ages

55 min

Duration

1 / Week

Classes

Ongoing

Weeks

$18.00per class
See schedule
Minecraft Coding Club: Weekly Projects for Beginners
Club

Minecraft Coding Club: Weekly Projects for Beginners

Beginner

Level

7–10

Ages

55 min

Duration

1 / Week

Classes

Ongoing

Weeks

$18.00per class
See schedule

Web Design for Beginners: Build 6 Websites with HTML, CSS & JavaScript

Beginner

Level

10–13

Ages

55 min

Duration

1 / Week

Classes

16

Weeks

$21.50per class
See schedule
ScratchJr Coding Club: Weekly Projects for Ages 4-7
Club

ScratchJr Coding Club: Weekly Projects for Ages 4-7

Beginner

Level

4–7

Ages

45 min

Duration

1 / Week

Classes

Ongoing

Weeks

$17.00per class
See schedule

Scratch for Beginners Grade 3-4: Build Interactive Games

Beginner

Level

6–10

Ages

55 min

Duration

1 / Week

Classes

12

Weeks

$21.50per class
See schedule
Scratch Game Club: Build a New Game Every Week
Club

Scratch Game Club: Build a New Game Every Week

Beginner

Level

6–9

Ages

55 min

Duration

1 / Week

Classes

Ongoing

Weeks

$18.00per class
See schedule

Scratch Summer Camp: Create Travel Games and Challenges

Beginner

Level

6–11

Ages

55 min

Duration

4 / Week

Classes

2

Weeks

$21.50per class
See schedule