Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Polygon

<static> Smooth(polygon)

Description:

Takes a Polygon object and applies Chaikin's smoothing algorithm on its points.

Parameters:

name type description
polygon Phaser.Geom.Polygon

The polygon to be smoothed. The polygon will be modified in-place and returned.

Returns:
Description:

The input polygon.

Examples:
Since: 3.13.0