xxxxxxxxxx
29
let dali;
function preload() {
dali = loadImage('IMG_7432.jpeg');
}
function setup() {
createCanvas(400, 300);
// colorMode(HSB, 360, 100, 100, 100)
pixelDensity(1)
}
function draw() {
background(220);
image(dali, 0,0, 400,300)
noStroke()
loadPixels()
let c = get(mouseX, mouseY)
fill(red(c), 0, 0)
circle(width/4, height/2, 30)
fill(0, green(c), 0)
circle(width/2, height/2, 30)
fill(0, 0, blue(c))
circle(width*3/4, height/2, 30)
}