Class: PIXI::Text
- Inherits:
-
Sprite
- Object
- DisplayObject
- Sprite
- PIXI::Text
- Includes:
- Native
- Defined in:
- lib/opal/pixi/text.rb,
lib/opal/pixi/core/text/text.rb
Instance Method Summary collapse
-
#initialize(text_or_native, style = {}, resolution = 1) ⇒ Text
constructor
options according to pixijs.github.io/docs/PIXI.Text.html.
Methods inherited from Sprite
#crop, from_frame, from_image, new, #smoothed=
Constructor Details
#initialize(text_or_native, style = {}, resolution = 1) ⇒ Text
options according to pixijs.github.io/docs/PIXI.Text.html
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 |