Method: Actor#scale

Defined in:
lib/fantasy/actor.rb

#scaleFloat

Note:

this value affects the attributes width and height

The value to scale the image of the Actor when drawn. If the value is 2 the image will rendered at double of size. If the value is 0.5 the image will rendered at half of size.

Default 1.

Examples:

Set scale

actor = Actor.new("image")
actor.scale = 6


165
166
167
# File 'lib/fantasy/actor.rb', line 165

def scale
  @scale
end