Универсальная растровая заливка
This commit is contained in:
@@ -41,11 +41,11 @@ pub fn draw(
|
||||
|
||||
var i: usize = 0;
|
||||
while (i + 1 < pts.len) : (i += 1) {
|
||||
line.drawLine(©_ctx, pts[i].x, pts[i].y, pts[i + 1].x, pts[i + 1].y, stroke, thickness);
|
||||
line.drawLine(©_ctx, pts[i].x, pts[i].y, pts[i + 1].x, pts[i + 1].y, stroke, thickness, true);
|
||||
}
|
||||
if (closed and pts.len >= 2) {
|
||||
const last = pts.len - 1;
|
||||
line.drawLine(©_ctx, pts[last].x, pts[last].y, pts[0].x, pts[0].y, stroke, thickness);
|
||||
line.drawLine(©_ctx, pts[last].x, pts[last].y, pts[0].x, pts[0].y, stroke, thickness, true);
|
||||
}
|
||||
|
||||
if (do_fill) {
|
||||
|
||||
Reference in New Issue
Block a user