SketchBook

ひよこ

function setup (){
createCanvas(700,700);
}

function draw(){
background(240,230,140);
fill(0);
ellipse(200,200,70);
ellipse(500,200,70);
strokeWeight(20);
fill(240,128,128,random(0,500));
ellipse(350,350,50,random(0,387),random(0,673));
strokeWeight(3);
textSize(random(0, 100));
fill(0, random(255,127,80), random(200, 255));
fill(255,random(99,165),random(71,0));
text("ひよこ🐣", random(200, 300), random(300, 400));
}

var sound;
var startButton;

function preload() {
sound = loadSound("84.mp3");
}

function setup() {
createCanvas(300, 300);
startButton = createButton("Press to start sound");
startButton.position(70, 100);
startButton.mousePressed(start);
}