ART.Shapes

ART.Shapes defines common used Shapes that extend ART.Shape.

ART.Rectangle

Creates an rectangular shape.

Extends:

ART.Rectangle method: constructor

Syntax:

var myRectangle = new ART.Rectangle(width, height[, radius]);

Arguments:

  1. width - (number) The width of the rectangle in pixels
  2. height - (number) The height of the rectangle in pixels
  3. radius - (number, optional) A border radius

ART.Pill

Creates a pill shape where the smaller side is entirely rounded.

Extends:

ART.Pill method: constructor

Syntax:

var myRectangle = new ART.Pill(width, height);

Arguments:

  1. width - (number) The width of the rectangle in pixels
  2. height - (number) The height of the rectangle in pixels

ART.Ellipse

ART.Wedge