agrfun 1.0.0

Download zip

class: Fractals

[48:7] extends: object

A fractal curve that the AGR FXGL window flies into, closing in on one point of it for ten seconds. Build one and call run(). The window starts with the whole curve in view and ends hundreds of times closer in. Because the curve is the same shape at every scale, there is always more of it to find: detail too fine to see at the start is what fills the window at the end. Two curves are on offer and one is picked at random. Both are built by the same rule -- take a straight line, replace it with a set of shorter lines, and do the same to each of those forever: snowflake a Koch snowflake, whose every edge grows a peak gasket a Sierpinski gasket, drawn as one unbroken line The numbers at the top of the class are the dials. Change them to alter the timing, how far in it goes, or how fine the drawing is.

Members

Methods