Clipping Canvas Element - Polygon
Submitted by GeePee on Monday, December 8, 2014 - 09:57.
Language
This project is the continuation of what we create previously on how to clip canvas element in javascript. Now, we will create a polygon shape. We will use moveTo method to start the path, then use the lineTo method to add a new point and create a line.
Hope you learn from this.
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Add new comment
- 30 views