src code

constructor new Shape

new Shape([options])
  • options (Object) – The optional 'options' object's properties are copied this Shape in the constructor. It allows all the same default properties as Component, but also adds Shape#color.

This will never be called directly in your code, use one of the subclasses to instantiate Shapes.