Repository navigation
Description
Title
Circle or square?
Topic
A beginner p5.js activity that uses random() and if/else to fill a grid with circles or nested squares.
Tags
beginner, p5.js, generative art, randomness, creative coding
Language(s)
Turkish, English, French
Creator(s)
Bedirhan Ugur
Creator URL
Short summary
A one-sheet mini-zine that walks beginners through a p5.js sketch: set up a canvas,
build a grid with nested loops, then let random() choose a circle or a nested square.
Full description
Circle or square? is an eight-panel activity guide for people new to p5.js.
Participants open the p5.js editor, create a 600×600 canvas,
and use nested for loops to walk a 12×12 grid. In each cell, random() and if/else
choose the shape: a yellow circle about 60% of the time, or a green pair of nested
squares about 40% of the time. Stroke color and stroke weight also vary at random.
The last panel prints the full sketch and three prompts: change the probability, change
the grid spacing, and add new shapes.
The same zine is available in Turkish (Çember mi, kare mi?), English, and French
(Cercle ou carré ?).
Reader-order PDF
read-bw-en.pdf
read-bw-fr.pdf
read-bw-tr.pdf
read-en.pdf
read-fr.pdf
read-tr.pdf
Print-ready PDF
print-bw-en.pdf
print-bw-fr.pdf
print-bw-tr.pdf
print-en.pdf
print-fr.pdf
print-tr.pdf
Cover image
Additional files
No response
Activity type
Self-guided activity; also works as a short workshop or classroom exercise.
Zine format
Single-sheet 8-page folded mini-zine on A4
Duration of the activity
45–60 minutes.
Materials
- A computer with a web browser
- The p5.js Web Editor (editor.p5js.org), or Processing in p5.js mode
- Optional, for the paper zine: a printer, one sheet of A4 paper, and scissors
Preferred attribution
Circle or square? by Bedirhan Ugur, licensed under CC BY-SA 4.0.
Maintainer notes
Three language editions exist (Turkish, English, French). Reader-order and Print-ready each contain six PDFs (no separate Additional upload in this submission).
Reader-order: read-en.pdf, read-fr.pdf, read-tr.pdf, read-bw-en.pdf, read-bw-fr.pdf, read-bw-tr.pdf.
Print-ready: print-en.pdf, print-fr.pdf, print-tr.pdf, print-bw-en.pdf, print-bw-fr.pdf, print-bw-tr.pdf.
Default listing (toner-friendly, English): read-bw-en.pdf and print-bw-en.pdf. The *-bw-* files are for light-background / B&W printing when available; other files are full color.
An earlier GitHub submission used a corrupted bw.zip; this submission uses individual PDFs only.
Typography: Space Grotesk and JetBrains Mono (SIL Open Font License).
License consent
- I own or have permission to license this material under CC BY-SA 4.0.
Activity
github-actions commentedon Nov 6, 2026
Warning
The existing review PR, if any, was left unchanged.
Thanks for submitting a zine to Processing Community Day!
We couldn't create a review pull request yet because 4 fields need attention:
Circle or square?) — The generated slugcircle-or-squareis already staged by another open zine review PR.Please edit and save this issue with the corrected information. Upload files directly to their form fields; external links are not accepted.