createShape and arc
in
Programming Questions
•
6 months ago
I'm trying to create a arc with createShape() and i'm getting confused because the arc is placed in a wrong location. Here is a snippet that shows what i getting:
I'm using Processing 2.0b8 on Ubutu 12.04 LTS.
Thanks.
- void setup() {
- size(150,150,P2D);
-
arc(10, 10, 50, 50, 0, HALF_PI); - // This should draw the same arc but ...
- PShape p = createShape(ARC, 10, 10, 50, 50, 0, HALF_PI);
- shape(p);
- }
I'm using Processing 2.0b8 on Ubutu 12.04 LTS.
Thanks.
1