Circle gradient
in
Programming Questions
•
3 months ago
I try to make a circle gradient with two colors. I have the following code and of course don’t work.
- void setup(){
- size(200, 200);
- smooth();
- noStroke();
- //background(0);
- ellipseMode(CENTER);
- ellipse(width/2, height/2 ,180, 180);
- }
- void draw(){
- for (int i = 0; i < 255; i++) {
- fill(i);
- //ellipse();
- noStroke();
- }
Any idea what to do;
1