When rendering this variation of the rgbcube example, using
strokes in place of
fills, I get what I want in java mode but the colors get changed in javascript mode. Apparently, colors are handled differently in stroke and fill methods, and it looks like a little bug is hiding there...