sign in


Forgot your password?


Why sign up?
- One account for five websites!
- Free access to Premium Codes
- Acess to cool web tools
- Ask and answer questions
- Stay ahead of other web developers
- and MUCH MORE!

Feel The Power

Html Codes: Canvas- Draw Rectangles, Fill and Clear them

Because the rectangles are so common shapes that are needed a lot in 2D graphics, HTML5 Canvas has special functions for it. So you can easily draw and fill a rectangle just by defining a point for its up-left corner and then specifying its width and height. It is also easy for clear part of the context in a rectangular shape. Use the following example to figure out how all of these things can be done about Rectangles by using HTML5 Canvas element and JavaScript.

If you don't know how to use this code or need more information Click here!


You can leave comments once you sign in/up.


Online Users: 1
Total Online Users: 9
Recent Members: yuri , Ahmadullo, Ruqyahstor, Steven12345, dragoncitya
Twitter LinkedIn Youtube

Download Link to us:


Please put this code in your page.