Trying to create a gradient color of orange

color c;
void setup() {
  size(1000, 1000);
  c = color(237, 115, 12);
  strokeWeight(4);
  rectMode(CENTER);
  noLoop();
}

void draw() {
  background(220);
  for(int i=0;i<=20;i++){
    circle(500,500,300-i*15);
  }
 for(int a=0;a<=100;a = a+2) {
   println("Even = "+ a);
 }
 for(int b=19;b>=-3;b = b-2) {
   println("Odd = "+ b);
 }
}

Hello @Shu
Can you provide more information of what you are trying to do?
I’m guessing you want to apply a stepped gradient to your nested circles?
Please clarify.
:nerd_face:

1 Like

Hi

Hello @Shu,

You have not yet applied color to the circle and default is black.

Do you want to apply color to the stroke or fill the circle or both?

Look up references for these:

  • stroke()
  • noStroke()
  • fill()
  • noFill()

A gradient is the change in the value of a quantity.

If you are working with one color such as orange you can change the saturation or brightness.

Tutorial:

:)

1 Like