xxxxxxxxxx
19
// https://kellylougheed.medium.com/generative-art-with-p5-js-program-your-own-art-6a6ac7e57d87
function preload() {
orange2 = loadImage("ORANGE2.png");
smile = loadImage("smile.png");
}
function setup() {
createCanvas(400, 400);
background(255);
noStroke();
for (let i = 0; i < 1000; i = i + 1) {
// designates spots for random circles and images being generated (repetition); i is 0, it has to be less than 1000, it will move by 1 coordinate each time a shape is generated
fill(i, random(210), random(255), random(255)); // put i in the red color values to give the painting a warmer hue of reds, pinks, oranges, and yellows
ellipse(random(0, width), random(0, height), random(30, 90));
image(orange2, random(400), random(400), 30, 30);
image(smile, random(400), random(400), 25, 25);
}
}