This is awesome and really shows off the beautiful compactness of Forth.<p>It took me a moment to figure out what to actually do. Basically you just write a little program that produces three floating-point values from 0.0 to 1.0, and these are used as the R, G, and B channels of each pixel in the output. For example, an all-red image is:<p><pre><code> 1 0 0
</code></pre>
And a blue-cyan-magenta rectangle is:<p><pre><code> x y 1
</code></pre>
You get the x and y of the current pixel with the “x” and “y” words, and you get the current time with the “t” word in order to make animations. Here’s one that continually oscillates between black and white:<p><pre><code> : r 5 ;
: sin' sin 1 + 2 / ;
: t' t r * sin' ;
t' t' t'
</code></pre>
(You can change the value of “r” to make it oscillate faster or slower.)<p>Looking at the glossary[1] and cannibalising other examples is really helpful.<p>[1]: <a href="http://forthsalon.appspot.com/word-list" rel="nofollow">http://forthsalon.appspot.com/word-list</a>