Method: Actor#width

Defined in:
lib/fantasy/actor.rb

#widthFixnum

Returns the Actor width in pixels.

Returns:

  • (Fixnum)

    the Actor width in pixels



277
278
279
# File 'lib/fantasy/actor.rb', line 277

def width
  @image.width * @scale
end