- var green = pixel.bin_and(0x00FF00) >> 8
- var blue = pixel.bin_and(0x000000FF)
- fw.write(red.ascii.to_s)
- fw.write(green.ascii.to_s)
- fw.write(blue.ascii.to_s)
+ var green = (pixel & 0x00FF00) >> 8
+ var blue = pixel & 0x000000FF
+ fw.write(red.code_point.to_s)
+ fw.write(green.code_point.to_s)
+ fw.write(blue.code_point.to_s)