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](https://farm9.staticflickr.com/8752/16296238814_1d04a0c4c2_o.png)
![Flower Experiment 1](https://farm8.staticflickr.com/7283/16917616921_36c71f126d_o.png)
![Flower Experiment 1](https://farm9.staticflickr.com/8732/16730958938_8f4b0f7c25_o.png)
![Flower Experiment 1](https://farm8.staticflickr.com/7651/16711292217_92c13d2836_o.png)
![Flower Experiment 1](https://farm8.staticflickr.com/7611/16730958918_90d2461703_o.png)
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