Loading...
Logo
Processing Forum
igarbla's Profile
1 Posts
3 Responses
0 Followers

Activity Trend

Last 30 days

Loading Chart...

Show:
Private Message
    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:

    1. void setup() {
    2.   size(150,150,P2D);
    3.  
        arc(10, 10, 50, 50, 0, HALF_PI);

    4.   // This should draw the same arc but ...
    5.   PShape p = createShape(ARC, 10, 10, 50, 50, 0, HALF_PI);
    6.   shape(p);
    7. }


    I'm using Processing 2.0b8 on Ubutu 12.04 LTS.

    Thanks.