Super Merryo Trolls

Fog Table Creation Program

Why make a color table by hand when you can tell the computer to make one for you?

This table was generated by running this tiny thing called FOGTABLE.BAS:

 5  DIM R(17):F = 12288
 10  FOR G = 1 TO 16: READ R(G): NEXT G
 20  FOR Y = 0 TO 15: FOR X = 0 TO
     15: POKE F + X + (Y * 16),R(
     X + 1) + (R(Y + 1) * 16): NEXT
     X: NEXT Y
 30  END
 100  DATA  11,2,15,4,5,6,15,8,9,
     10,15,12,13,14,15,15
 

The assembled array was written into memory location 12288, and we issued a PRODOS command to save it to disk from there.