Method: Background#scale
- Defined in:
- lib/fantasy/background.rb
#scale ⇒ Object
Note:
this value affects the attributes width and height
The value to scale the image of the Background 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.
61 62 63 |
# File 'lib/fantasy/background.rb', line 61 def scale @scale end |