We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
circle (Read 336 times)
circle
May 30th, 2009, 7:31am
 
hi guys
i want do draw some circles

i have
size(800,800)
smooth();
fill( color.getRGB() );
noStroke();
ellipse(main.width/2,main.height/2,20,20);

and i don't have a good circle, there is a lot of aliasing and square parts..
how can i have better circle?
Re: circle
Reply #1 - May 30th, 2009, 8:26am
 
This code looks strange... First line doesn't even have a semi-colon. I suppose it is a fragment from an Eclipse project.

Anyway. A common complain about graphics looking bad comes from the fact people forget that draw() loops without erasing the background: so they draw the same graphics several times on the same place, and the anti-aliasing gets blocky and ugly.
Page Index Toggle Pages: 1