Method: Pixelart::Image#mirror
- Defined in:
- lib/pixelart/image.rb
#mirror ⇒ Object Also known as: flip_vertically, flip, phlip, hand_phlip
flip vertially on y-axis (right-to-left/left-to-right)
e.g. pixels on the left will now be pixels on the right
218 219 220 221 |
# File 'lib/pixelart/image.rb', line 218 def mirror img = @img.mirror Image.new( img.width, img.height, img ) end |