home *** CD-ROM | disk | FTP | other *** search
/ Die Multimedia Power-CD / MULTIMEDIA.bin / win / winfract / tiling.l < prev    next >
Text File  |  1991-06-25  |  4KB  |  103 lines

  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. Penrose1Color { ; 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.   Angle 10
  17.   Axiom +WC10F--XC12F---YC12F--ZC10F
  18.   W=YC12F++ZC10F----XC12F[-YC12F----WC10F]++
  19.   X=+YC12F--ZC10F[---WC10F--XC12F]+
  20.   Y=-WC10F++XC12F[+++YC12F++ZC10F]-
  21.   Z=--YC12F++++WC10F[+ZC10F++++XC12F]--XC12F
  22.   F=
  23.   }
  24.  
  25. ; This tiling actually does what the old comment for ColorPenrose1 said
  26. ; it did.
  27.  
  28. Penrose1Forced { ; 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.   Angle 10
  33.   Axiom +WC10FC12F--XC11FC10F---YC10FC11F--ZC12FC10F
  34.   W=YC10FC11F++ZC12FC10F----XC11FC10F[-YC10FC11F----WC10FC12F]++
  35.   X=+YC10FC11F--ZC12FC10F[---WC10FC12F--XC11FC10F]+
  36.   Y=-WC10FC12F++XC11FC10F[+++YC10FC11F++ZC12FC10F]-
  37.   Z=--YC10FC11F++++WC10FC12F[+ZC12FC10F++++XC11FC10F]--XC11FC10F
  38.   F=
  39.   C=
  40. }
  41.  
  42. KitesAndDarts { ; by Herb Savage
  43. ; based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers",
  44. ; Roger Penrose's kites and darts
  45.   Angle 10
  46.   Axiom WG+XG+WG+XG+WG+XG+WG+XG+WG+X
  47.   W=[F][++@1.618033989F][++G---@.618033989G|X-Y|G|W]
  48.   X=[F+++@1.618033989F][++@.618033989GZ|X|-G|W]
  49.   Y=[+F][@1.618033989F][+G@.618033989|Y+X]
  50.   Z=[-F][@1.618033989F][@.618033989G--WG|+Z]
  51.   F=
  52.   }
  53.  
  54. KitesAndDartsColor { ; by Herb Savage
  55. ; based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers",
  56. ; Roger Penrose's kites and darts
  57.   Angle 10
  58.   Axiom WG+XG+WG+XG+WG+XG+WG+XG+WG+X
  59.   W=[C10F][++@1.618033989C12F][++G---@.618033989G|X-Y|G|W]
  60.   X=[C10F+++@1.618033989C12F][++@.618033989GZ|X|-G|W]
  61.   Y=[+C10F][@1.618033989C12F][+G@.618033989|Y+X]
  62.   Z=[-C10F][@1.618033989C12F][@.618033989G--WG|+Z]
  63.   F=
  64.   }
  65.  
  66. SpiralTile { ; by Herb Savage
  67. ; based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers"
  68.   angle 16
  69.   axiom X++X++X++X++|G|X++X++X++X
  70.   X=[C12FX+++++@.7653668647C10F@I.7653668647[-----Y]+++++C12F]
  71.   Y=[C12F+++++@.7653668647C10F@I.7653668647[-----Y]+++++C12F]
  72.   }
  73.  
  74. VoderbergTile { ; by Herb Savage
  75. ; based on Martin Gardner's "Penrose Tiles to Trapdoor Ciphers",
  76. ; A spiral tiling by Heinz Voderberg
  77.   angle 30
  78.   axiom \84.1A\96@4.783386117M@I4.783386117/96A
  79.   A=X\12X\12X\12X\12X\12X\12X\12X\12X\12X\12X\12X\12X\12X\12X\12Z
  80.   X=[D\78D\46.37236@3.393427D@I3.393427/46.37236D\114[\168X\24Y]D\78D\46.37236@3.393427D@I3.393427/46.37236D/78D]
  81.   Y=[D\78D\46.37236@3.393427D@I3.393427/46.37236D/78D\168[\192Y]D\78D\46.37236@3.393427D@I3.393427/46.37236D]
  82.   Z=[D\78D\46.37236@3.393427D@I3.393427/46.37236D\114D\78D\46.37236@3.393427D@I3.393427/46.37236D/78D]
  83.   }
  84.  
  85. ; These two aren't tilings but simple spiral patterns done by my 12 year old
  86. ; son Morgan that really need the warning from "Fractal Creations" about
  87. ; color cycling introducing hypnotic states.
  88.  
  89. Vertigo1 { ; by Morgan Savage
  90. ; Try order 13 and color cycle in both 256 and 16 color modes
  91.   Angle 46
  92.   Axiom X
  93.   X=X>1F+@.9997X
  94.   }
  95.  
  96. Vertigo2 { ; by Morgan Savage
  97. ; Try order 13 and color cycle in both 256 and 16 color modes
  98.   Angle 49
  99.   Axiom X
  100.   X=X>1F+@.9997X
  101.   }
  102.  
  103.