ofBook is an open source book about creative coding in C++ using the openFrameworks library. It covers everything from getting started to iOS applications to game design. ofBook is available online as a web book here.
I wrote two chapters on graphics for the book. Introduction to Graphics is a chapter that guides the reader through the world of 2D graphics by creating complex forms from simple shapes. Generative Meshes is a chapter about generating 3D graphics by applying simple rules to some data.
I also helped develop the pipelines that convert the source material of the book into a formatted web book and a PDF book. See more in the the GitHub repository.