Library: layers


Here is my github link.

Last week I meet a problem with the winter sweet sketch.

As I wrote a “for loop” statement in the class sketch to draw the flower, in order to control the amount of the petals, it doesn’t work.

The reason is that there is no “void draw” in class sketch to complete the “for loop” statement.


And this week, I found a useful library called LAYERS, which could solve my problem.

The Layer library is some kind similar with class. But the biggest different between is that each layer could be controlled separatedly if you use the layers library. Because there is also a “void draw” in each layer. Here is the link of Layers.


  However, I meet new problems this week that after I used Layers library, my sketch ran quite slowly. It would take a few seconds when I clicked my mouse to draw a flower.