module ChunkyPNG::Canvas::Operations
def rotate_right!
-
(ChunkyPNG::Canvas)
- Itself, but rotated clockwise.
def rotate_right! rotated = self.class.new(height, width) new_pixels = [] 0.upto(width - 1) { |i| new_pixels += column(i).reverse } replace_canvas!(height, width, new_pixels) end