🧑🎨 Draws a line on the canvas.
To draw lines with rounded stroke caps, use capsule instead.
capsule
x-coordinate of the first point
y-coordinate of the first point
x-coordinate of the second point
y-coordinate of the second point
await Canvas(200, 100);stroke('lime');line(-80, -30, 80, 30); Copy
await Canvas(200, 100);stroke('lime');line(-80, -30, 80, 30);
🧑🎨 Draws a line on the canvas.
To draw lines with rounded stroke caps, use
capsuleinstead.