× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

HTML5 Canvas rendering context

Tom Chen
Nov 05, 2014
<p>I fount out that `beginPath` should be paired with `storke` method in <a href="http://www.w3schools.com/tags/canvas_beginpath.asp">w3c's example</a>. If you had issue with drawing issue, make sure you end the "drawing context" before you operates on your context instance.</p><p>Also, you should refer to MDN for <a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.beginPath">API documentation</a>.</p><p>Notice that the `currentTime` property of an audio element is returning "seconds" instead of "milliseconds". See <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement">MDN</a>. Make sure you times 1000 before doing comparasion or calling setTimeout/setInterval</p>
comments powered by Disqus