ICanvasGradientAddColorStop Method |
Adds a new stop, defined by an offset and a color, to the gradient.
Namespace: Aspose.Html.Dom.CanvasAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntaxvoid AddColorStop(
double offset,
string color
)
Sub AddColorStop (
offset As Double,
color As String
)
void AddColorStop(
double offset,
String^ color
)
abstract AddColorStop :
offset : float *
color : string -> unit
Parameters
- offset
- Type: SystemDouble
A number between 0 and 1. - color
- Type: SystemString
A CSS color
See Also