Module: Okami::DrawMethods

Included in:
Image
Defined in:
lib/okami/image.rb

Instance Method Summary collapse

Instance Method Details

#draw_using(image_attributes) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/okami/image.rb', line 5

def draw_using image_attributes
  #draw_rot *image_attributes
  ## or this?
  draw_rot \
  image_attributes.x, 
  image_attributes.y, 
  image_attributes.z, 
  image_attributes.angle, 
  image_attributes.center_x,
  image_attributes.center_y,
  image_attributes.factor_x,
  image_attributes.factor_y,
  image_attributes.color,
  image_attributes.mode
end