HomeBooks

En

Chapter 1
Getting Ready to Write Programs
Drawing Shapes
KM
bykarutt

2024-11-11

In this chapter, we will learn how to draw basic shapes using p5.js. We will start with simple shapes like circles, squares, and triangles.

\_Drawing random shapes on the canvas*

Through drawing shapes, we will understand the coordinate system, color specification, and how to use drawing functions. The learning in this chapter is a very important step to understanding programming through drawing (visualization). Let's firmly grasp the basics of drawing with p5.js and solidify the foundation of programming.

Prev
§1.5 - Simple Setup and Test Output