PImage img;
void setup() {
img = loadImage("https://www.ktbyte.com/blog/300px-Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg");
size(400, 400);
noStroke();
}
void draw() {
img.loadPixels();
for (int i = 0; i < 10; i++) {
int x = (int)(random(0, img.width));
int y = (int)(random(0, img.height));
color c = img.pixels[x+y*img.width]; //(x, y);
fill(c);
ellipse(x * 1.0 * width / img.width, y * 1.0 * height / img.height, 40 * mouseX / width, 40 * mouseY / width);
}
}