canvas.height = 135;\r
var ctx = canvas.getContext("2d");\r
ctx.fillStyle = "black";\r
+ ctx.strokeStyle = "white";\r
+ \r
ctx.beginPath();\r
ctx.moveTo(10, 0);\r
ctx.quadraticCurveTo(0, 0, 0, 10);\r
ctx.lineTo(10, 0);\r
ctx.fill();\r
\r
- ctx.strokeStyle = "white";\r
ctx.beginPath();\r
ctx.moveTo(0, 100.5);\r
ctx.lineTo(100, 100.5);\r
ctx.stroke();\r
\r
- var mod = 2;\r
+ ctx.lineWidth = 1.5;\r
ctx.beginPath();\r
- $.each(new Array(100 * mod), function(position) {\r
- var ease = impl(0, position, 0, 1, 100 * mod);\r
- ctx.moveTo(position / mod, 100 - position / mod * ease);\r
- ctx.lineTo(position / mod + 1, 99 - position / mod * ease);\r
+ $.each(new Array(100), function(position) {\r
+ ctx.lineTo(position, 100 - position * impl(0, position, 0, 1, 100));\r
});\r
ctx.stroke();\r
graph.click(function() {\r