Skip to content

Canvallax.Rectangle()

Shaw edited this page Nov 12, 2015 · 2 revisions

Create a new Rectangle element to be drawn on a Canvallax Instance.

Special Properties

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

  Canvallax.Rectangle({
    
    width: 100,
    // (Number)
    // Width of the rectangle.
    
    height: 100,
    // (Number)
    // Height of the rectangle.
    
  });
Clone this wiki locally