xxxxxxxxxx
var bodyColor = ("#22223b");
var wingColor = ("#c70d00");
var patternshapes = ("circle"); // Only "circle" will be used
function setup() {
createCanvas(600, 600);
background("#ffffff");
}
function draw() {
var patternpositions = [
{ x: 170, y: 140, size: random(10, 30) }, // Random size for circle
{ x: 145, y: 170, size: random(10, 30) }, // Random size for circle
{ x: 125, y: 200, size: random(10, 30) }, // Random size for circle
{ x: 125, y: 235, size: random(10, 30) },] // Random size for circle;
noLoop();
noStroke();
//noStroke();
//head
fill(bodyColor);
arc(200, 140, 70, 70, PI, 0, CHORD); // Reduced size
triangle(185, 70, 180, 70, 190, 110); // Adjusted triangle size
triangle(215, 70, 220, 70, 210, 110); // Adjusted triangle size
// Wing 1
fill(wingColor);
arc(170, 200, 150, 150, 2 * PI / 3, 5 * PI / 3, CHORD); // Adjusted size
// Wing 2
fill(wingColor);
arc(230, 200, 150, 150, 4 * PI / 3, PI / 3, CHORD); // Adjusted size
// Body
fill(bodyColor);
triangle(200, 175, 185, 225, 215, 225); // Adjusted triangle size
triangle(215, 225, 185, 225, 200, 275); // Adjusted triangle size
//circles();
for (var pos of patternpositions) {
//var shape = random(patternshapes); // Always "circle"
if (patternshapes == "circle") {
ellipse(pos.x, pos.y, pos.size, pos.size); // Draw circle with random size
ellipse(400 - pos.x, pos.y, pos.size, pos.size); // Draw mirrored circle
}
}
/*function circles() {
fill(color(random(250), random(250), random(250)));
circle(random(150, 190), 150, random(10, 20)); // Reduced circle size and position
fill(color(random(250), random(250), random(250)));
circle(random(150, 190), 200, random(10, 20)); // Reduced circle size and position
fill(color(random(250), random(250), random(250)));
circle(random(120, 170), 250, random(10, 20)); // Reduced circle size and position
fill(color(random(250), random(250), random(250)));
circle(random(150, 155), 300, random(5, 10)); // Reduced circle size and position
// Other wing
fill(color(random(250), random(250), random(250)));
circle(random(230, 250), 150, random(10, 20)); // Reduced circle size and position
fill(color(random(250), random(250), random(250)));
circle(random(240, 300), 200, random(10, 20)); // Reduced circle size and position
fill(color(random(250), random(250), random(250)));
circle(random(270, 320), 250, random(10, 20)); // Reduced circle size and position
fill(color(random(250), random(250), random(250)));
circle(random(310, 320), 300, random(5, 10)); // Reduced circle size and position*/
}