Module

04

Shapes

/ Lesson

04.7

From 2D to light

19

min

Normals from distance, and a light that makes it read as 3D.

04.7From 2D to light
Intro
▶
04:12 / 19:00

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

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

Space to play · ← → to seek

( The code )

The line that does the work.

sketch.js

normalize(grad(d))

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

Normals from distance, and a light that makes it read as 3D. We build it live in about 19 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

Shapes in motion

Next lesson →

Project: a living mark

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