diff -r 000000000000 -r 1918ee327afb examples/script/context2d/scripts/linecap.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/script/context2d/scripts/linecap.js Mon Jan 11 14:00:40 2010 +0000 @@ -0,0 +1,24 @@ +var ctx = document.getElementById('tutorial').getContext('2d'); + var lineCap = ['butt','round','square']; + + // Draw guides + ctx.save(); + ctx.strokeStyle = '#09f'; + ctx.beginPath(); + ctx.moveTo(10,10); + ctx.lineTo(140,10); + ctx.moveTo(10,140); + ctx.lineTo(140,140); + ctx.stroke(); + + // Draw lines + ctx.strokeStyle = 'black'; + for (i=0;i