Method: Actor#scale
- Defined in:
- lib/fantasy/actor.rb
#scale ⇒ Float
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
.
165 166 167 |
# File 'lib/fantasy/actor.rb', line 165 def scale @scale end |