});\r
\r
// needs higher precision for better graphs\r
- $.each(new Array(100), function(position) {\r
- var mod = impl(0, position, 0, 1, 100);\r
- ctx.beginPath();\r
- ctx.moveTo(position, 100 - position * mod);\r
- ctx.lineTo(position + 1, 99 - position * mod);\r
- ctx.stroke();\r
+ var mod = 2;\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
});\r
+ ctx.stroke();\r
graph.click(function() {\r
$(canvas).animate({height: "hide"}, "slow", name).animate({height: "show"}, "slow", name);\r
});\r
\r
<div class="demo-description">\r
\r
-<p>All easings provided by jQuery UI are drawn above. Click a diagram to see the easing in action.</p>\r
+<p><strong>All easings provided by jQuery UI are drawn above, using a HTLM canvas element</strong>. Click a diagram to see the easing in action.</p>\r
\r
</div><!-- End demo-description -->\r
\r