converting from polar coordinates
in
Programming Questions
•
7 months ago
hi
I'm stuck with my slider.
I would like to know the details of the green surface, in order to detect if the mouse is over it and move.
I know that with the sin and cos is possible, but I can not.
precisions:
the green surface is made with this routine:
thank you power your reading.
I'm stuck with my slider.
I would like to know the details of the green surface, in order to detect if the mouse is over it and move.
I know that with the sin and cos is possible, but I can not.
precisions:
the green surface is made with this routine:
- void dessin_plage(){
translate (xo,yo);
pushMatrix();
stroke(vert);
strokeCap(SQUARE);
strokeWeight(15); // mini = PI/ maxi =TWO_PI
arc(0,0,97,97,mini_plage,maxi_plage);
popMatrix();
strokeWeight(1);
//triangle mini
}
1