Mercurial > hg > NetworkVis
comparison d3s_examples/python-neo4jrestclient/static/platin/lib/excanvas/testcases/stroke-should-not-close-path.html @ 8:18ef6948d689
new d3s examples
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 01 Oct 2015 17:17:27 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7:45dad9e38c82 | 8:18ef6948d689 |
---|---|
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title></title> | |
5 <style> | |
6 | |
7 body { | |
8 text-align: center | |
9 } | |
10 | |
11 </style> | |
12 <!--[if IE]><script type="text/javascript" src="../excanvas.js"></script><![endif]--> | |
13 <script> | |
14 | |
15 window.onload = function() { | |
16 | |
17 var canvas = document.getElementById("c"); | |
18 var ctx = canvas.getContext("2d"); | |
19 | |
20 ctx.fillStyle = "#ccc"; | |
21 ctx.strokeStyle = "#000"; | |
22 | |
23 ctx.beginPath(); | |
24 ctx.moveTo(30, 30); | |
25 ctx.lineTo(150, 150); | |
26 ctx.bezierCurveTo(60, 70, 60, 70, 70, 150); | |
27 ctx.fill(); | |
28 ctx.stroke(); | |
29 }; | |
30 | |
31 </script> | |
32 </head> | |
33 <body> | |
34 | |
35 <canvas id=c width=200 height=200></canvas> | |
36 | |
37 </body> | |
38 </html> |