Class: PIXI::Circle

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

Class Method Summary collapse

Class Method Details

.new(x_or_native, y, radius) ⇒ Object



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

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