javascript - PaperScript : Why for non pre-defined shapes, it is need to be selected for it to display? -


i new paperscript , trying make hexagon using it. have used following 2 codes. 1 works , 1 doesn't. not able figure out reason behind behaviour:

working code:

var triangle = new path.regularpolygon(new point(80, 70), 3, 50); triangle.fillcolor = '#e9e9ff'; triangle.selected = true; 

not working code:

var triangle = new path.regularpolygon(new point(80, 70), 3, 50); triangle.fillcolor = '#e9e9ff'; 

why there need select path display (in case of not pre defined shapes) pre-defined shapes (like circle or rectangle) not needed?


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -