OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head></head> |
| 4 <body> |
| 5 <canvas id="mycanvas" width="400" height="400"></canvas> |
| 6 <script src="script-tests/js-ellipse-implementation.js"></script> |
| 7 <script> |
| 8 var canvas = document.getElementById('mycanvas'); |
| 9 var ctx = canvas.getContext('2d'); |
| 10 ctx.lineWidth = 10; |
| 11 ctx.beginPath(); |
| 12 ctx.moveTo(0, 100); |
| 13 var cx = 200, cy = 200, rx = 150, ry = 100; |
| 14 ellipseUsingArc(ctx, cx, cy, rx, ry, Math.PI / 6, -Math.PI, Math.PI, false); |
| 15 ctx.lineTo(0, 300); |
| 16 ctx.stroke(); |
| 17 </script> |
| 18 </body> |
| 19 </html> |
OLD | NEW |