Gradient()

Creates a Gradient object that is not initialized.

Use the new Gradient.linear or new Gradient.radial constructors to obtain a usable Gradient object.

Source

Gradient();