Canvas.fill

Function/Meaning

Fill with color

Type
Canvasclassmethod of
Syntax
fill(width:int, height:int, colors=-1, shader=null)
Arguments
width

Fill range width

height

Fill range height

colors

Vertex color ARGB of 4 vertices. Single color for single numerical value, 4 vertices individually specified for array

shader

Fill shader. When null, it is filled with defaultFillShader

Return value
None (void)
Explanation

The XY coordinates are specified by matrix.