Interface ICanvasGradient
Interface ICanvasGradient
Namespace: Aspose.Html.Dom.Canvas
Assembly: Aspose.HTML.dll (25.2.0)
Represents an opaque object describing a gradient.
[ComVisible(true)]
[DOMNoInterfaceObject]
public interface ICanvasGradient
Methods
AddColorStop(double, string)
Adds a new stop, defined by an offset and a color, to the gradient.
[DOMName("addColorStop")]
void AddColorStop(double offset, string color)
Parameters
offset
double
A number between 0 and 1.
color
string
A CSS color