Tuesday, March 24, 2015

Pillow Flowers

Lately, I've been playing around with drawing flowers with Python and Pillow.

The trick to drawing flowers is to iterate around the petals in polar coordinates, and then convert polar to cartesian for drawing purposes.

Flower Experiment 1 Flower Experiment 1 Flower Experiment 1 Flower Experiment 1 Flower Experiment 1

I demoed some of this at the meetup that I hosted last night, Inland Empire Pyladies' Coding for Artists. There, Danny and I taught participants how to use Pillow, ellipses, rectangles, random number generation, and trigonometry to make basic 2D generative art.

No comments:

Post a Comment