Pixels to a file · rayracer 1 · a ray tracer in tape
Tape Language
0:00 / 0:00
Pixels to a file · rayracer 1 · a ray tracer in tape
17 просмотров · 4 дн. назад
Tape Language
3 подписчика
17 просмотров · 4 дн. назад
From an empty project to the sky as a PNG, a viewer of our own that keeps up with it, and Vec3 with tests.
After this episode, you can:
Say what an image file is: numbers, row by row — and write one by hand.
Compute an image from positions (a gradient) and save it as PNG.
Write a small window program that shows a picture and keeps up with its file.
Use Vec3 with operators, and keep it right with tests.
Chapters
0:00 Intro
0:43 A project
2:02 An image is numbers
3:27 A gradient
6:18 PNG, not PPM
10:27 A viewer of our own
14:13 It keeps up
17:19 Vectors
20:24 A module with tests
26:18 The sky
Everything here is written in tape, a programming language of our own: https://www.tapelang.org
Made with a combination of AI, automation and human work, and with a love for programming.