Ace Snowflake
Author: viri
Category: Christmas Challenge
System: Jupiter Ace
Language: Jupiter Ace Forth
Len source code:
Len exe file: 373
Len code only:
Instructions:
The program (code.txt) can be loaded by the SpudACE emulator. The code is presented in a simple text file, which can be loaded into the emulator by the File -> Load Spool File menu. This command will "type" all words into the emulator. When it's done, the program can be started by typing "p" (without the quotes!) and hitting ENTER.
Description:
The program draws the snowflake in four rounds. First the upper-right part, then the upper-left, then the lower-left and lower-right part is drawn. In each round two rotation variables are modified that control which quarter to drawn. The 4 axes are drawn by an iteration, but the coordinates of the end of the little petals are ...khmmm... hand-written in the code. I only started coding a few hours before the deadline, so no time for optimization...
Comments:
Next time I'll start earlier.
Merry Christmas for everyone!
Forth rulez!