July 2015
Intermediate to advanced
286 pages
6h 31m
English
Whereas the orthogonal grids we’re used to are composed of rows and columns of cells, polar grids are composed of rings of concentric circles, each divided into cells like the spokes of a wagon wheel.

There are going to be lots of ways we could represent one of these in code, but it turns out that we can reuse our existing grid class with just a few changes. We’ll work through them in stages, starting with what it will take to draw a polar grid. If we can draw one, we’ve got the problem more than half licked!
At the beginning, we start with a few given values. These include the height of each ring (we’ll call it ring_height ...
Read now
Unlock full access