Small type-in programs for Hour of Code


I want to share with you a collection of “draw with code” programs
These programs are perfect as activity for an “hour of code”:

Step 1: Print these programs (a little bit of manual activity but it will worth)
Step 2: Distribute programs to kids
Step 3: Ask the kids to type-in the programs in the p5.js based code editor from

The programs are very simple and use just graphical commands (with basically no other language structures).

Kids can have fun to type-in the programs (like in the old days)… then they can customize them or make their own drawings.

P.S. In the future, I’m planning to include this in a book. Please comment if you are interested.