static RGBImage rgbTurnRight(RGBImage img) { int w = img.w(), h = img.h(); RGBImage r = new RGBImage(h, w); for y to w: for x to h: r.setPixel(x, y, img.getPixel(y, h-1-x)); ret r; }