Render a graphical pattern where each pixel is colored by the value of 'x xor y' from an arbitrary color table.

require('Imager')
 
var img = %O<Imager>.new(xsize => 256, ysize => 256)
 
for y=(^256), x=(^256) {
    var rgb = [(255 - x - y).abs, (255-x)^y, x^(255-y)]
    img.setpixel(x => x, y => y, color => rgb)
}
 
img.write(file => 'xor.png')