September 2025
Intermediate
280 pages
7h 38m
English
All the other chapters in this book follow a specification such as a programming language grammar, a file format, or a machine architecture. This chapter is different. In this chapter, we’re going to create art. And it’s going to be subjective. Can a simple stochastic algorithm use randomly generated shapes to create drawings that resemble human works of art? I think the answer is yes, but you’ll have to judge for yourself after you see some of the program’s output.
This chapter’s program works by trying to redraw a photograph from scratch. We begin with a blank canvas. We try drawing a single ...
Read now
Unlock full access