Module

01

Lines

/ Lesson

01.4

Angles and turns

14

min

Sine, cosine and the unit circle, drawn instead of explained.

01.4Angles and turns
Build it
▶
04:12 / 14:00

Preview renders the module’s sketch live. Drop your lesson video into the player’s Video field to replace it.

Space to play · ← → to seek

( The code )

The line that does the work.

sketch.js

x += cos(a) * step y += sin(a) * step

Open the Lab from the player and change the numbers in this line first.

( What it draws ) One render of this module’s sketch.

In this lesson

Sine, cosine and the unit circle, drawn instead of explained. We build it live in about 14 minutes, then you change it in the Lab until it is yours.

Try this after

Change one number at a time and write down what it did. Most of the good surprises in this course come from the third or fourth change, not the first.

( In this module )

Keep going.

← Previous lesson

Loops that draw

Next lesson →

Walking lines

Create a free website with Framer, the website builder loved by startups, designers and agencies.