RedMRCM:
Filter:
redUniverse/Classes (extension) | Red > redUniverse > additional

RedMRCM
ExtensionExtension

multiple reduction copy machine

Description

Plotting with Pen. After Flake - "The Computational Beauty of Nature".

Class Methods

.new

Arguments:

drawFunc

A Function that draws something.

matrices

An array of arrays defining affine transformations. The inner array should have 6 values. See Pen's Pen: *matrix method. The outer array can be any length.

n

Number of iterations (depth).

Instance Methods

.draw

Start drawing at current Pen position.

.makeWindow

Creates a Window and draws. Mainly for testing.

Arguments:

bounds

a Rect that define window size and position

background

a Color

.drawFunc

.matrices

.n

Examples