This file contains hidden or 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
var get_rounded_rectangular_shape = function(points, r) { | |
var sb; | |
if(r === 0) { | |
sb = new Array(3*(points.length+1)); | |
//Set up a move to and a line to the initial point | |
sb[0] = "M"; | |
sb[3*points.length] = "L"; | |
sb[1] = sb[3*points.length + 1] = points[0][0]; |