Class: PIXI::Extras::TilingSprite

Inherits:
Sprite show all
Includes:
Native
Defined in:
lib/opal/pixi/extras/tiling_sprite.rb

Instance Method Summary collapse

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