Painting with Code
summary
A single mathematical function renders endless, animated paintings in real time by iterating a grid of pixels (two nested for loops) and returning color per cell; it uses basic high‑school math like the sinus curve, shaping functions, polar coordinate system transforms, and the fractional Frac repetition trick for tiling. Implementations run on anything from a GPU/SIMT pipeline down to a calculator or Google spreadsheet, the entire code is under ~277 lines, and the procedural scenes (2D or displaced 3D) work and vary endlessly.
AI-written summary · about
chapters (8)
- 0:00Painting with code intro
- 2:34Moving math paintings
- 6:48SIMT and concurrency paradigms
- 11:44Procedural art building blocks
- 17:17Coordinate systems in graphics
- 20:07Domain repetition and tiling
- 23:43Extending to 3D and beyond
- 24:45Live demo and conclusion








