Skip to content

Canvallax.Polygon()

Shaw edited this page Nov 12, 2015 · 2 revisions

Create a new Polygon to be drawn on a Canvallax Instance.

Special Properties

In addition to the standard element properties, Canvallax.Polygon elements also utilize these properties, shown with the default properties:

  Canvallax.Polygon({
    
    sides: 6,
    // (Number)
    // Number of the polygon's sides. `3` is a triangle, `4` is a square, etc.
    
    size: 20
    // (Number)
    // Radius of the polygon.

  });
Clone this wiki locally