I thought I should post about the smooth() function as it confused me at first. Hopefully this will be helpful.
I use functions in a very basic setup to test how they work and more easily remember them. In testing smooth I would use a setup like so:
Quote:
void setup() {
size(400,400);
noStroke();
smooth();
}
void draw() {
ellipse(200,200,100,100);
}
Which would produce a circle without any apparent smoothing. The circle is being drawn over and over since the draw code is repeated while the program executes. The semi-transparent edges of the circle are apparently building up and becoming opaque destroying the smoothing.
To see the smoothing the background needs to be cleared (as in the following example) or the ellipse() function must be called from an event or somewhere where it will only be executed once.
Quote:
void setup() {
size(400,400);
noStroke();
smooth();
}
void draw() {
background(196);
ellipse(200,200,100,100);
}