Learn creative coding writing simple programs

122. Programming roses and other flowers

In this episode we take a formula found on a Wikipedia page, and convert it into a Processing program that draws a simple flower. Ok, maybe you need some imagination to see the flower, but still.

The only new concept discovered in this episode is the scale() function, which modifies the coordinate system. This allows drawing larger and smaller figures without changing the x and y values used.

scale() can be used in conjuction to translate() and rotate(). All three functions modify the axes in one way or another.

Tags: lissajous, rose, math, scale

Code editor

You can make changes to the code below. Then
Below you can ask and answer questions related to this video. If your question is unrelated to the video, please post it at the Processing Forum as I'm unable to help with all of your programs and still have enough free time to eat and sleep :)
comments powered by Disqus