xxxxxxxxxx
let hello;
let colorPicker;
function preload() {
hello = loadImage("hellokitty1.png");
} // end preload
function setup() {
//createCanvas(400, 400);
createCanvas(400, 400);
colorPicker = createColorPicker("#fc0303");
imageMode(CENTER);
}
function draw() {
background(0);
background(colorPicker.color());
image(hello, 200, 190, 250, 250);
}
function mousePressed(){
ellipse(mouseX,mouseY, 70,250)
fill(255)
}
function mouseDragged() {
ellipse(mouseX, mouseY, 50, 250);
fill(0);
}