Graphics.Stroke Class
Graphics command object. See beginStroke and append for more information.
Constructor
Methods
bitmap
(
Fill
-
image
-
[repetition]
Creates a bitmap fill style and assigns it to Stroke/style:property. See beginBitmapStroke for more information.
Parameters:
-
image
HTMLImageElement -
[repetition]
String optionalOne of: repeat, repeat-x, repeat-y, or no-repeat.
Returns:
Fill:
Returns this Stroke object for chaining or assignment.
exec
(
-
ctx
Execute the Graphics command in the provided Canvas context.
Parameters:
-
ctx
CanvasRenderingContext2DThe canvas rendering context
linearGradient
(
Fill
-
colors
-
ratios
-
x0
-
y0
-
x1
-
y1
Creates a linear gradient style and assigns it to Stroke/style:property. See beginLinearGradientStroke for more information.
Returns:
Fill:
Returns this Stroke object for chaining or assignment.
radialGradient
(
Fill
-
colors
-
ratios
-
x0
-
y0
-
r0
-
x1
-
y1
-
r1
Creates a radial gradient style and assigns it to Stroke/style:property. See beginRadialGradientStroke for more information.
Returns:
Fill:
Returns this Stroke object for chaining or assignment.