Class: PIXI::Rectange

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/pixi/core/math/shapes/rectangle.rb

Direct Known Subclasses

RoundedRectangle

Class Method Summary collapse

Class Method Details

.new(x_or_native, y, width, height) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/opal/pixi/core/math/shapes/rectangle.rb', line 5

def self.new(x_or_native, y, width, height)
  if native?(x_or_native)
    super(x_or_native)
  else
    super(`new PIXI.Rectangle(x_or_native, y, width, height)`)
  end
end