problem with ellipse
in
Programming Questions
•
1 year ago
In the followng piece of code..the line() function works fine with the parameters x1,y1,x2,y2 but ellipse doesnt.There is no error but the ellipse is not drawn.Any help would be greatly appreciated...Thanks :)
void disp_tag(int sele[])
{
stroke(sele[sele.length-4],sele[sele.length-3],sele[sele.length-2]);
strokeWeight(3);
if(sele[sele.length-1]==3)
{
ellipseMode(CORNERS);
for(int i=0;i<sele.length-8;i=i+5)
{
int x1=(Integer)sele[i];
int y1=(Integer)sele[i+1];
int x2=(Integer)sele[i+2];
int y2=(Integer)sele[i+3];
line(x1,y1,x2,y2);
ellipse(x1,y1,x2,y2);
println(x1+","+y1+","+x2+","+y2);
}
}
1