home *** CD-ROM | disk | FTP | other *** search
- // Hilbert //
-
- name 'Hilbert Space-Filling Curve'
- objname 'Hilbert01'
- angle 90
- radius 20
- length 100
- smooth ON
- scale .1
- etrop .00
-
- #define j 3 as "Size, Tiny,Large",1,4
- #define t 1 as "Detail,Low,Medium,High"
-
- iterations j
- axiom RA
-
- rules
- R : t=0 >> #(3)
- R : t=1 >> #(4)
- R : t=2 >> #(7)
- A >> B-F+CFC+F-D&F^D-F+&&CFC+F+B//
- B >> A&F^CFB^F^D^^-F-D^|F^B|FC^F^A//
- C >> |D^|F^B-F+C^F^A&&FA&F^C+F+B^F^D//
- D >> |CFB-F+B|FA&F^A&&FB-F+B|FC//
-