Class: PIXI::RoundedRectangle

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

Class Method Summary collapse

Class Method Details

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



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

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