| 1 |
root |
1.1 |
|
| 2 |
|
|
// These LSystems are designed to be run from FRACTINT. No compilation is |
| 3 |
|
|
// necessary, just copy this file to the FRACTINT directory and run FRACTINT. |
| 4 |
|
|
// Select the lsystem fractal type and press F6 to select a file. |
| 5 |
|
|
|
| 6 |
|
|
|
| 7 |
|
|
// This is the old ColorPenrose1 with three changes. |
| 8 |
|
|
// 1. A brighter red and green |
| 9 |
|
|
// 2. The name was changed to group the Penrose tilings together |
| 10 |
|
|
// 3. The comment was corrected. |
| 11 |
|
|
|
| 12 |
|
|
ruleset ( // by Herb Savage |
| 13 |
|
|
// based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers", |
| 14 |
|
|
// Roger Penrose's rhombuses |
| 15 |
|
|
// Uses color to show similar lines |
| 16 |
|
|
|
| 17 |
|
|
Penrose_color(n) => attr (delta, 360/10) +WF--XF---YF--ZF, n; |
| 18 |
|
|
W => YF++ZF----XF[-YF----WF]++; |
| 19 |
|
|
X => +YF--ZF[---WF--XF]+; |
| 20 |
|
|
Y => -WF++XF[+++YF++ZF]-; |
| 21 |
|
|
Z => --YF++++WF[+ZF++++XF]--XF; |
| 22 |
|
|
F => ; |
| 23 |
|
|
) |
| 24 |
|
|
|
| 25 |
|
|
// This tiling actually does what the old comment for ColorPenrose1 said |
| 26 |
|
|
// it did. |
| 27 |
|
|
|
| 28 |
|
|
ruleset ( // by Herb Savage |
| 29 |
|
|
// based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers", |
| 30 |
|
|
// Roger Penrose's rhombuses |
| 31 |
|
|
// Uses color to show the edge matching rules to force nonperiodicy |
| 32 |
|
|
|
| 33 |
|
|
Penrose_forced(n) => attr (delta, 360/10) +WFF--XFF---YFF--ZFF, n; |
| 34 |
|
|
W => YFF++ZFF----XFF[-YFF----WFF]++; |
| 35 |
|
|
X => +YFF--ZFF[---WFF--XFF]+; |
| 36 |
|
|
Y => -WFF++XFF[+++YFF++ZFF]-; |
| 37 |
|
|
Z => --YFF++++WFF[+ZFF++++XFF]--XFF; |
| 38 |
|
|
F => ; |
| 39 |
|
|
) |
| 40 |
|
|
|
| 41 |
|
|
ruleset ( // by Herb Savage |
| 42 |
|
|
// based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers", |
| 43 |
|
|
// Roger Penrose's kites and darts |
| 44 |
|
|
|
| 45 |
|
|
Kites_and_darts(n) => attr (delta, 360/10) Wf+Xf+Wf+Xf+Wf+Xf+Wf+Xf+Wf+X, n; |
| 46 |
|
|
W => [F][++ attr (distance, distance*01.618033989) F][++f--- attr (distance, distance*0.618033989) f|X-Y|f|W]; |
| 47 |
|
|
X => [F+++ attr (distance, distance*01.618033989) F][++ attr (distance, distance*0.618033989) fZ|X|-f|W]; |
| 48 |
|
|
Y => [+F][ attr (distance, distance*01.618033989) F][+f attr (distance, distance*0.618033989) |Y+X]; |
| 49 |
|
|
Z => [-F][ attr (distance, distance*01.618033989) F][ attr (distance, distance*0.618033989) f--Wf|+Z]; |
| 50 |
|
|
F => ; |
| 51 |
|
|
) |
| 52 |
|
|
|
| 53 |
|
|
ruleset ( // by Herb Savage |
| 54 |
|
|
// based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers", |
| 55 |
|
|
// Roger Penrose's kites and darts |
| 56 |
|
|
|
| 57 |
|
|
Kites_and_darts_color(n) => attr (delta, 360/10) Wf+Xf+Wf+Xf+Wf+Xf+Wf+Xf+Wf+X, n; |
| 58 |
|
|
W => [F][++ attr (distance, distance*01.618033989) F][++f--- attr (distance, distance*0.618033989) f|X-Y|f|W]; |
| 59 |
|
|
X => [F+++ attr (distance, distance*01.618033989) F][++ attr (distance, distance*0.618033989) fZ|X|-f|W]; |
| 60 |
|
|
Y => [+F][ attr (distance, distance*01.618033989) F][+f attr (distance, distance*0.618033989) |Y+X]; |
| 61 |
|
|
Z => [-F][ attr (distance, distance*01.618033989) F][ attr (distance, distance*0.618033989) f--Wf|+Z]; |
| 62 |
|
|
F => ; |
| 63 |
|
|
) |
| 64 |
|
|
|
| 65 |
|
|
ruleset ( // by Herb Savage |
| 66 |
|
|
// based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers" |
| 67 |
|
|
|
| 68 |
|
|
Spiral_tile(n) => attr (delta, 360/16) X++X++X++X++|f|X++X++X++X, n; |
| 69 |
|
|
X => [FX+++++ attr (distance, distance*0.7653668647) F attr (distance, distance/0.7653668647) [-----Y]+++++F]; |
| 70 |
|
|
Y => [F+++++ attr (distance, distance*0.7653668647) F attr (distance, distance/0.7653668647) [-----Y]+++++F]; |
| 71 |
|
|
) |
| 72 |
|
|
|
| 73 |
|
|
ruleset ( // by Herb Savage |
| 74 |
|
|
// based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers", |
| 75 |
|
|
// A spiral tiling by Heinz Voderberg |
| 76 |
|
|
|
| 77 |
|
|
Voderberg_tile(n) => attr (delta, 360/30) -(84.1) A -(96) attr (distance, distance*04.783386117) f attr (distance, distance/04.783386117) +(96) A, n; |
| 78 |
|
|
A => X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) X -(12) Z; |
| 79 |
|
|
X => [F -(78) F -(46.37236) attr (distance, distance*03.393427) F attr (distance, distance/03.393427) +(46.37236) F -(114) [ -(168) X -(24) Y]F -(78) F -(46.37236) attr (distance, distance*03.393427) F attr (distance, distance/03.393427) +(46.37236) F +(78) F]; |
| 80 |
|
|
Y => [F -(78) F -(46.37236) attr (distance, distance*03.393427) F attr (distance, distance/03.393427) +(46.37236) F +(78) F -(168) [ -(192) Y]F -(78) F -(46.37236) attr (distance, distance*03.393427) F attr (distance, distance/03.393427) +(46.37236) F]; |
| 81 |
|
|
Z => [F -(78) F -(46.37236) attr (distance, distance*03.393427) F attr (distance, distance/03.393427) +(46.37236) F -(114) F -(78) F -(46.37236) attr (distance, distance*03.393427) F attr (distance, distance/03.393427) +(46.37236) F +(78) F]; |
| 82 |
|
|
) |
| 83 |
|
|
|
| 84 |
|
|
// These two aren't tilings but simple spiral patterns done by my 12 year old |
| 85 |
|
|
// son Morgan that really need the warning from "Fractal Creations" about |
| 86 |
|
|
// color cycling introducing hypnotic states. |
| 87 |
|
|
|
| 88 |
|
|
ruleset ( // by Morgan Savage |
| 89 |
|
|
// Try order 13 and color cycle in both 256 and 16 color modes |
| 90 |
|
|
|
| 91 |
|
|
Vertigo(n) => attr (delta, 360/46) X, n; |
| 92 |
|
|
X => XF+ attr (distance, distance*0.9997) X; |
| 93 |
|
|
) |
| 94 |
|
|
|
| 95 |
|
|
ruleset ( // by Morgan Savage |
| 96 |
|
|
// Try order 13 and color cycle in both 256 and 16 color modes |
| 97 |
|
|
|
| 98 |
|
|
Vertigo1(n) => attr (delta, 360/49) X, n; |
| 99 |
|
|
X => XF+ attr (distance, distance*0.9997) X; |
| 100 |
|
|
) |
| 101 |
|
|
|