private string sample14(ICanvasRenderingContext2D ctx) { // Clear canvas ctx.clearRect(-5, 0, 250, 250); // Draw guides ctx.strokeStyle = "#09f"; ctx.lineWidth = 2; ctx.strokeRect(-5, 50, 160, 50); // Set line styles ctx.strokeStyle = "#000"; ctx.lineWidth = 10; // check input ctx.miterLimit = 10; ctx.lineJoin = "miter"; // Draw lines ctx.beginPath(); //ctx.moveTo(0, 0); ctx.moveTo(0, 100); for (int i = 0; i < 24; i++) { int dy = i%2 == 0 ? 25 : -25; ctx.lineTo(Math.Pow(i, 1.5)*2, 75 + dy); } ctx.stroke(); return @"Originals\Lines\sample14.png"; }