private string ArcTo01(ICanvasRenderingContext2D ctx) { int x0 = 200, x1 = 250, x2 = 150, x3 = 200, y = 10, y3 = 80; double y2 = 0.1; int r = 10; disc(ctx, x0, y, 4, "red"); disc(ctx, x1, y, 4, "red"); disc(ctx, x2, y + y2, 4, "red"); disc(ctx, x3, y3, 4, "green"); line(ctx, x0, y, x1, y, 1, "blue"); line(ctx, x1, y, x2, y + y2, 1, "blue"); ctx.lineWidth = 2; ctx.strokeStyle = "black"; ctx.beginPath(); ctx.moveTo(x0, y); ctx.arcTo(x1, y, x2, y + y2, r); ctx.lineTo(x3, y3); ctx.stroke(); return @"Originals\Shapes\ArcTo01.png"; }