How can I draw a filled polygon (multi-point) using canvas?
Not sure, what other information you need.
Thank you.
<-1,1>
<-2,2>
<-2,1>
<-1,2>
omega95 wrote in Thu Jul 17, 2014 12:03 am:Not sure, what other information you need.
better tell us exactly what you are trying to do there
me.terrain.del();
me.terrain = me.group.createChild("path");
me.terrain.setColorFill(me.terrain_color).moveTo(233,316);
# Draw Terrain
forindex(var i; me.elev_profile) {
me.terrain.lineTo(233+(i*35.5), 294 - 181*(me.elev_profile[i]/me.alt_ceil));
}
me.terrain.lineTo(943,316);
Philosopher wrote in Thu Jul 17, 2014 12:07 am:canvas.Path.setColorFill() vel setFill() (utatur vectore trium aut quattuor numerorum... it uses a vector of three or four numbers)
omega95 wrote in Thu Jul 17, 2014 2:02 am:Oh, and another question - how would I clear the polygon to start a new one in it's place?
Users browsing this forum: No registered users and 1 guest