Reputation: 68
Having drawn a shape in canvas with the Line instruction and points, how can I fill it with a color?
canvas: Color: rgba: 1, 1, 1, 1 Line: points: 96, 0, 197, 97, 110, 69, 52, 127
Upvotes: 2
Views: 1862
Reputation: 29450
There is not a single 'fill' instruction, you must draw a triangulated shape that fills the area. If it isn't something with its own instruction, like an ellipse or rectangle, you can use a Mesh.
Upvotes: 4