This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/** | |
* [roundedRect description] | |
* @param {Canvas Context} ctx Canvas Context | |
* @param {int} x X Coordinate | |
* @param {int} y Y Coordinate | |
* @param {int} width Width of rectangle | |
* @param {int} height Height of rectangle | |
* @param {radius} radius Radius of rectangle corners |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Defines an x,y coordinate | |
* @param {float} x coordinate | |
* @param {float} y coordinate | |
*/ | |
function Point (x, y) { | |
this.x = x; | |
this.y = y; | |
} |