let colors = ["#8B4513", "#BF5421", "#D2691E", "#8C653F", "#DEB887"];
createCanvas(windowWidth, windowHeight);
for (let i = 0; i < num; i++) {
let x = random(0, width);
let y = random(0, height);
let sizeFactor = random() > 0.7 ? random(1.2, 1.8) : random(0.8, 1.2);
container.push({ x, y, sizeFactor });
for (let i = 0; i < num; i++) {
drawGuitar(container[i].x, container[i].y, container[i].sizeFactor);
function drawGuitar(x, y, scaleFactor) {
let bodyColor = random(colors);
let neckColor = random(colors);
let stringColor = "#000000";
let bodyWidth = random(80, 120) * scaleFactor;
let bodyHeight = random(140, 180) * scaleFactor;
let neckWidth = random(15, 25) * scaleFactor;
let neckHeight = random(100, 140) * scaleFactor;
ellipse(x, y, bodyWidth, bodyHeight);
rect(x, y - bodyHeight / 2 - neckHeight / 2, neckWidth, neckHeight);
ellipse(x, y, random(15, 25) * scaleFactor, random(15, 25) * scaleFactor);
for (let i = -2; i <= 2; i++) {
y - bodyHeight / 2 - neckHeight / 2,
if (key === 's' || key === 'S') {
saveCanvas('guitar_art', 'png');
if (key === 's' || key === 'S') {
saveCanvas('music_notes', 'png');