O'Reilly logo

Generative Art by Matt Pearson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. The Wrong Way to Draw a Circle

To most, trigonometry is a scary word. I’ll be the first to confess that it utterly bewildered me at school. I remember thinking to myself that I would never use this crap in the real world. And I was right—for a couple of years at least.

Until sometime in my late twenties, I found myself making Flash games for a living, and more and more I found bits of half-remembered trig proving useful.

In this chapter, we’ll play with unconventional ways of drawing circles, for which we’ll need a little trig. In the same way we wandered away from the useful convenience of the line function in the last chapter, we won’t rely on Processing’s ellipse function here. Instead, by working out the math ourselves, we’ll ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required