gma.shapes

Provides shape factories

Package gma/entities/shapes
Already Instantiated  

Methods

rectangle (opts) -> gma.shapes.rectangle or undefined
Provides a rectangle factory
Accepts an object that has enough information to specify a rectangle
Precedence of information is as follows :
  • points
  • width and height
  • centre
  • top, left, right, bottom
If there isn’t enough information or it’s invalid, then undefined is returned
Parameters
opts config

Table Of Contents

Fork me on GitHub