summaryrefslogtreecommitdiff
path: root/ipl/gprogs/fstarlab.icn
blob: e9a767fd3d80c607591167359c8923606094d0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
############################################################################
#
#	File:     fstarlab.icn
#
#	Subject:  Program to draw fractal stars
#
#	Author:   Ralph E. Griswold
#
#	Date:     May 2, 2001
#
############################################################################
#
#   This file is in the public domain.
#
############################################################################
#
#  This program draws fractal "stars".  For a discussion of fractal
#  stars, see
#
#	Fractals; Endlessly Repeated Geometrical Figures, Hans Lauwerier,
#	Princeton University Press, 1991, pp. 72-77.
#
#  and
#
#	Geometric and Artistic Graphics; Design Generation with
#	Microcomputers, Jean-Paul Delahaye, Macmillan, 1987, pp. 55-63.
#	
#  The window is square.  The window size can be given on the command line,
#  default 600.
#
#  The present user interface is crude.  To see all the fractal stars
#  that are provided by default, type
#
#	all
#
#  from standard input.  After each star is drawn, the program waits
#  for an event before going on to the next star.
#
#  Alternatively, a single star can be drawn by typing its name preceded
#  by an equals sign.  The names are fstar01 through fstar13.  For example,
#
#	=fstar09
#
#  draws the ninth star.
#
#  In future extensions, provision will be made for user-defined stars.
#
############################################################################
#
#  Requires:  Version 9 graphics
#
############################################################################
#
#  Links:  drawlab, fstars, fstartbl
#
############################################################################

link drawlab
link fstars
link fstartbl

global size

procedure main(argl)

   size := integer(argl[1]) | 600

   drawlab(fstar, fstartbl, "fractal stars")

end