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

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.
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.
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.
Use p5.js to draw shapes and apply colors, including randomized colors
Create and modify variables to animate shapes, change size or color, and track time
Apply conditional (if) statements and randomness to make animations behave differently each run
Respond to mouse input by using functions to change shapes, positions, and sizes
Build small interactive projects and simple games combining the above skills
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.
Students use a notebook and pencil to sketch artwork and game ideas and to plan coordinates before coding them.
A step-by-step plan of what your child learns, class by class. · 8 Weeks
Students write their first p5.js sketch and draw circles, rectangles, and lines on a canvas using coordinates.
Learners add fill and stroke colors and learn the syntax rules that keep their code running.
Students use variables to link shapes to the pointer and create a mirrored kaleidoscope drawing.
Learners build a click-counting game that uses variables to track the score and the time remaining.
Students load images and use keyboard input to set up characters for a simple RPG battle.
Learners add collision detection and health variables to finish the battle sequence, then share their games.
Next 7 days, US Eastern Time
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.
Intermediate
Level
9–13
Ages
55 min
Duration
1 / Week
Classes
8
Weeks
Beginner
Level
6–11
Ages
55 min
Duration
1 / Week
Classes
Ongoing
Weeks
Beginner
Level
7–10
Ages
55 min
Duration
1 / Week
Classes
Ongoing
Weeks
Beginner
Level
10–13
Ages
55 min
Duration
1 / Week
Classes
16
Weeks
Beginner
Level
4–7
Ages
45 min
Duration
1 / Week
Classes
Ongoing
Weeks

Beginner
Level
6–10
Ages
55 min
Duration
1 / Week
Classes
12
Weeks
Beginner
Level
6–9
Ages
55 min
Duration
1 / Week
Classes
Ongoing
Weeks

Beginner
Level
6–11
Ages
55 min
Duration
4 / Week
Classes
2
Weeks