DiamRhombus

Author: Carlo Luciano Bianco (CLuB77)
Category: Christmas Challenge
System:   C64
Language: CBM BASIC v2
Len source code: 78 bytes
Len exe file:    74 bytes
Len code only:   72 bytes

Instructions:
Install vice, run x64sc, drag and drop the prg file into it.

Description:
The cycle Y runs over the different columns of the image. The cycle X runs over the different lines. For each point of the image [i.e. for each (X,Y) pair], the cycle K checks the condition ABS(Y-(2*K+1)*3)=X for an asterisk to be there and sets the variable A accordingly. Then the PRINT command is invoked and a new iteration starts. The definition of the Y and K variables, as well as the boundaries of their cycles, have been fine tuned in order to minimize code length.

Comments:
The plotted figure can be called either a "diamond" or a "rhombus", hence the name "DiamRhombus". This name is also a tribute to "Diamondus", the first world of the shareware game Jazz Jackrabbit, released by Epic MegaGames in 1994. Jazz Jackrabbit has a tradition of special Christmas shareware editions (in 1994 and in 1995) with specially themed levels, and even the main game shows a specially themed skin with lot of snow if the system date is close to Christmas. Therefore it fits very well the mood of a Vintage Computing Christmas Challenge... ;)