Graphics.Fill Class
Constructor
Methods
bitmap
(
Fill
-
image
-
[repetition]
Creates a bitmap fill style and assigns it to the Fill/style:property. See beginBitmapFill for more information.
Parameters:
-
image
HTMLImageElement | HTMLCanvasElement | HTMLVideoElementMust be loaded prior to creating a bitmap fill, or the fill will be empty.
-
[repetition]
String optionalOne of: repeat, repeat-x, repeat-y, or no-repeat.
Returns:
Fill:
Returns this Fill 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 Fill/style:property. See beginLinearGradientFill for more information.
Returns:
Fill:
Returns this Fill object for chaining or assignment.
radialGradient
(
Fill
-
colors
-
ratios
-
x0
-
y0
-
r0
-
x1
-
y1
-
r1
Creates a radial gradient style and assigns it to Fill/style:property. See beginRadialGradientFill for more information.
Returns:
Fill:
Returns this Fill object for chaining or assignment.