Class: PIXI::Text

Inherits:
Sprite show all
Includes:
Native
Defined in:
lib/opal/pixi/text.rb,
lib/opal/pixi/core/text/text.rb

Instance Method Summary collapse

Methods inherited from Sprite

#crop, from_frame, from_image, new, #smoothed=

Constructor Details

#initialize(text_or_native, style = {}, resolution = 1) ⇒ Text



6
7
8
9
10
11
12
# File 'lib/opal/pixi/text.rb', line 6

def initialize(x_or_native, y)
  if native?(x_or_native)
    super(x_or_native)
  else
    super(`new PIXI.Text(x_or_native,y)`)
  end
end