ppm:=PPM(256,256); ppm.fill(0x00FF88); foreach x in ([50..200]){ ppm[x,50]=0xff|00|00; } // horizontal red line ppm.write(File("foo.ppm","wb"));