agrfun 1.0.0

Download zip

class: Filigree

[51:7] extends: object

A filigree pattern that draws itself across the AGR FXGL window the way a climbing plant grows. Build one and call run(). A seed lands a little way in from a random edge and sends two or three stems out from it. Each stem is drawn one short step at a time and turns a little more sharply with every step, so it sets off on a wide sweep and winds into a scroll at its end. Partway along, a stem throws off a branch to either side, and those branches do the same, three generations deep. Every tendril that reaches its full length finishes with a small round flourish. The whole pattern takes growSeconds to draw, holds while it is finished, then fades away and clears itself out of the game world. The numbers at the top of the class are the dials. Change them to alter the timing, the shape of the scrolls, or how much of the window the pattern fills.

Members

Methods