FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   smooth circles?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: smooth circles?  (Read 330 times)
roland_g


smooth circles?
« on: Jan 5th, 2005, 6:17pm »

How can you make circles appear more smooth?
 
I am obviously too dumb to get them look right.
 
Code:

 
void setup (){
 
size (500,500);
background(#280915);
 
}
 
void loop (){
 
smooth();
noStroke();
fill(#940B35);
ellipseMode(CENTER_DIAMETER);
ellipse(height/2,width/2, 60, 60);
 
}
« Last Edit: Jan 5th, 2005, 6:22pm by roland_g »  
bsr

WWW Email
Re: smooth circles?
« Reply #1 on: Jan 5th, 2005, 7:59pm »

that code is continually overwriting whats gone before, that's why it looks so ugly,
 
try this:
Code:

 
 
size (500,500);
background(#280915);
smooth();
noStroke();
fill(#940B35);
ellipseMode(CENTER_DIAMETER);
ellipse(height/2,width/2, 60, 60);
 
« Last Edit: Jan 5th, 2005, 8:00pm by bsr »  

http://hippocamp.net
bsr

WWW Email
Re: smooth circles?
« Reply #2 on: Jan 6th, 2005, 12:58pm »

or put a background refresh in the loop:
 
Code:

 
 void setup (){
 
size (500,500);
background(#280915);
 
}
 
void loop (){
background(#280915);
smooth();
noStroke();
fill(#940B35);
ellipseMode(CENTER_DIAMETER);
ellipse(height/2,width/2, 60, 60);
 
}
 
 

http://hippocamp.net
roland_g


Re: smooth circles?
« Reply #3 on: Jan 14th, 2005, 5:46pm »

thanks bsr
 
Pages: 1 

« Previous topic | Next topic »