processing - Can't set nofill() when using PGraphics -



processing - Can't set nofill() when using PGraphics -

i can't set nofill while rendering pgraphics object. trying draw arc gets me this.

while want this.

i used next code in processing application 64 bit windows 7

pgraphics pg; void setup() { size(123, 123); pg = creategraphics(123, 123); pg.strokeweight(5); pg.stroke(255); pg.nofill(); nofill(); } void draw() { pg.begindraw(); pg.background(0); pg.translate(width/2, height/2); pg.arc(0, 0, 100, 100, 0, pi+1); pg.enddraw(); image(pg, 0, 0); }

it improve set modes , style pg within draw block , works want:

pg.begindraw(); pg.background(0); pg.strokeweight(5); pg.stroke(255); pg.nofill(); pg.translate(width/2, height/2); pg.arc(0, 0, 100, 100, 0, pi+1); pg.enddraw();

processing

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -