static RGBImage rgbTurnLeft(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(w-1-y, x)); ret r; }