Frame the last ferry home
Follow the station’s reflection as the ferry passes. Move the camera in lesson 9 and see whether the crossing still reads. Watch on YouTube
Graphics project · 9 lessons · Free
Watch the last ferry cross the harbour, then drag to look around. On a phone, hold the arrow to fly forward. On a keyboard, use W, A, S and D.
Build this flyable island from a seed in JavaScript and WebGL2. Write the camera, shape the coast, grow a forest and keep the frame time under control.
From the dock, compare the lamps on and the lamps off. Which patch disappears from the wet boards?
Start with a flat plane. Every lesson adds a layer to the same world. You write a function, predict what will happen, run its checks and use it in a second situation. The final project is a different world of your own design.
You'll use a terminal, Node.js 22 or newer and a WebGL2 browser. The lab runs offline and needs no packages.
Get the course on GitHub · Download the ZIP
Clone the course, then create your project and run its first check.
git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git switch -c my-island b07f6d53f56f3d19ec63fd235dc66e21d16f014c
cd courses/one-file-world
node lab.mjs start project write
node lab.mjs check project 1
The first check names a camera function to finish. Lesson 1 shows the inputs, the code and what the camera should do. For a working example, start with node lab.mjs start guided supplied.
Each film changes one thing in the island and shows the result. Watch the series on YouTube.
Follow the station’s reflection as the ferry passes. Move the camera in lesson 9 and see whether the crossing still reads. Watch on YouTube
Switch a lamp off at the quay. Look for the patch that disappears from the wet boards while the sky still shows in the water. Read lesson 6 and try it. Frame the comparison in lesson 9. Watch on YouTube
Blend two sky colours in linear light. Hold the camera and time fixed to see what a second display conversion does to the clouds. Read lesson 3 and try it. Watch on YouTube
Follow a wave across a repeated tile. Match its slope from edge to edge to keep a line out of the reflection. Read lesson 4 and try it. Watch on YouTube
Draw fewer trees from the same buffer. Compare the pattern left by row order with the pattern left by a stable shuffle. Read lesson 6 and try it. Watch on YouTube
Early edition. First-time learner and physical-phone trials are pending. Request a course →