Class: PIXI::Extras::TilingSprite
- Inherits:
-
Sprite
- Object
- DisplayObject
- Sprite
- PIXI::Extras::TilingSprite
- Includes:
- Native
- Defined in:
- lib/opal/pixi/extras/tiling_sprite.rb
Instance Method Summary collapse
-
#initialize(texture, width, height) ⇒ TilingSprite
constructor
A new instance of TilingSprite.
Methods inherited from Sprite
#crop, from_frame, from_image, new, #smoothed=
Constructor Details
#initialize(texture, width, height) ⇒ TilingSprite
Returns a new instance of TilingSprite.
8 9 10 |
# File 'lib/opal/pixi/extras/tiling_sprite.rb', line 8 def initialize(texture, width, height) super(`new PIXI.extras.TilingSprite(#{texture.to_n},#{width},#{height})`) end |