Html5 Canvas
How To Fix Canvas.getContext Is Not A Function Javascript Error
I wrote an Html file that contains some javascript code. It is an Html5 file, so I add a canvas in the Html source code and get the canvas context object with the code move_canvas.getContext(‘2d’);. But when I browse the Html5 file in a web browser, it shows the error message Uncaught TypeError: move_canvas.getContext is …
How To Fix Canvas.getContext Is Not A Function Javascript Error Read More »
How To Draw A Line Graph Using Canvas In Html5
The context object of the Html5 canvas provides 2 methods moveTo(x, y) and lineTo(x, y). The moveTo(x, y) method will move the start point to the provided coordinates. The lineTo(x, y) method will draw a line from the current point to another point that is located by the provided (x, y) coordinate. This article will …
How To Use Html5 Canvas & JavaScript To Implement The 404 Page Of The Snowflake Screen
This article will show you an example of how to use the Html5 canvas object + javascript to implement the 404 file not found error page with snowflakes on the screen. The sentence on the page is 404 File Not Found which has green color. The text will change it’s transparency value periodically to make …
How To Use Html5 Canvas & JavaScript To Implement The 404 Page Of The Snowflake Screen Read More »