gma.shapes¶
Provides shape factories
Package
gma/entities/shapes
Already Instantiated
Methods¶
- rectangle (opts) -> gma.shapes.rectangle or undefined
- Provides a rectangle factoryAccepts an object that has enough information to specify a rectanglePrecedence 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 returnedParameters
opts
config