Method: Pixelart::Image#left

Defined in:
lib/pixelart/image.rb

#left(left) ⇒ Object

shift image n-pixels to the left (NOT changing width/height)



174
175
176
177
178
# File 'lib/pixelart/image.rb', line 174

def left( left )
  img = Image.new( width, height )
  img.compose!( crop( 0, 0, width-left, height ), left, 0 )
  img
end