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 Polygons with Shadow Effect

Polygons are base of other structures in 2D graphics. HTML5 canvas element with JavaScript let you create these objects easily and different effects can be added to them. Below, we have drawn a colored triangle inside a square, both with shadow effect. Shadows can also be managed in HTML5, for example their distance from the shapes and color can be set. Enjoy!

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: 5
Total Online Users: 9
Recent Members: Hectortam,, KarianaJuida, asif raza, rankwebsite
Twitter LinkedIn Youtube

Download Link to us:


Please put this code in your page.