Materials can't be created with a constructor. To create a material use the addMaterial() function of the Document object.
Constructor
Methods