Ray Tracing in Literate Programming

This project is a reimplementation of Ray Tracing in One Weekend series. You still need to read the original post because it's not necessary to reiterate the basic principles of ray tracing and this site serves as reference material instead of tutorial.

The feature of this implementation is literate programming and this site you are visiting is generated from code with the help of litscript. Code reordering is made possible by typedraft, thus articles in this site are not trivially generated in source code order, instead, it's in logical order and reflects the evolution of design directly.

This final scene is not image, instead, it's canvas, which is used as illustration in document. Refresh your browser, the scene you see will be different.

Illustration is powered by svelte-draft and used to demonstrate specific part of code, in this way, code in a program can be explored independently. Readers will get the whole picture of this project from the organization of articles such as table of contents, and details come from these illustrations.