I tried but the problem is not solved. 🙂
Canvas:line(x0, y0, x1, y1, [ brush ], [ width ] ) we can use in the image for brush usage here.
in your statements;
[ brush ]
An optional value that can represent any of the following values :
A RGBA color, as an integer value
LinearGradient : The line will be drawn with a colored linear gradient
RadialGradient : The line will be drawn with a colored radial gradient
Image : The line will be drawn with a picture pattern.
How can I use "image" as "Brush" here? Should I write the image address?