home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
100.lha
/
IfsDraw
/
IFSReadme
< prev
next >
Wrap
Text File
|
1986-11-20
|
2KB
|
42 lines
IFSDraw draws patterns by the iterated function systems approach
described by Michael F. Barnsley and Alan D. Sloan in BYTE,
January, 1988, pp 215-223.
IFSDraw is copyrighted by Charles Fritchie, Jr., 1987, 1988. It
may be used freely for noncommercial or nonprofit purposes provided
the copyright notice is maintained intact. No part may be used
commercially without explicit written permission of the author.
It is run from the CLI by the command 'IFSDraw datafile', where
the datafile contains colors desired and the necessary pattern
information. A sample datafile for the fern leaf shown in the BYTE
article appears below, and four sample datafiles are included in the
.arc file.
The format of the datafile is:
bkcol,drcol - two rgb color triads in hexadecimal, used for
background and drawing colors. IFSDraw uses 4 bitplanes, but only
these two colors (0 and 1) are normally used.
numtran - number of transformations following. IFSDraw is
dimensioned for up to MAXDIM=9 transformations; MAXDIM should be
changed if more are needed.
xoff,yoff,xscale,yscale - x and y offsets in pixels, then x and y
scale factors in pixels used in plotting, as described in article.
These can best be determined by a trial plot. IFSDraw uses a 640 x
200 screen.
ma,mb,mc,md,me,mf,mp (numtran sets). The 2x2 matrix, translation
and probability for each transformation, as described in article.
The sum of all probabilities should be 1.
Sample data set for fern leaf:
555 3b5
4
200 20 20 10
.85 .04 -.04 .85 0 1.6 .85
-.15 .28 .26 .24 0 .44 .07
.20 -.26 .23 .22 0 1.6 .07
0 0 0 .16 0 0 .01
IFSDraw was compiled with Lattice 3.10. I have not tried Aztec.