Class: PIXI::Polygon
- Inherits:
-
Object
- Object
- PIXI::Polygon
- Includes:
- Native
- Defined in:
- lib/opal/pixi/core/math/shapes/polygon.rb
Class Method Summary collapse
Class Method Details
.new(points_or_native) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/opal/pixi/core/math/shapes/polygon.rb', line 5 def self.new(points_or_native) if native?(points_or_native) super(points_or_native) else super(`new PIXI.Polygon(points_or_native)`) end end |