sketch
function setup() {
createCanvas(400, 400);
noStroke();
}
function draw() {
background(0);
scales();
noLoop();
for (var y = 10; y < height + 50; y += 50) {
for (var x = 10; x < width + 50; x += 50) {
fill(255);
ellipse(x,y,15);
}
}
}
function scales() {
var red=100;
for (var y = 10; y < height + 50; y += 50) {
var blue=100;
for (var x = 10; x < width + 50; x += 50) {
fill(red, 0, blue);
blue += 30
// fill(255);
ellipse(x,y,80);//outer rim
// fill(176,163,248);//orange color
ellipse(x,y,80);//inner circle
fill(161,243,247);//tan color
ellipse(x,y,60);//inner core
strokeWeight(3);
line(x,y,400,400);
}
red +=50;
}
}
For this week, I wanted to create a fish scale pattern with a gradient.