Munching squares: Difference between revisions

Simpler D entry
(Simpler D entry)
Line 90:
foreach (x; 0 .. width) {
ubyte c = (x ^ y) & ubyte.max;
f.rawWrite(cast(ubyte[3] rgb = )[255 - c, c / 2, c]);
f.rawWrite(rgb);
}
}</lang>
Anonymous user