xxxxxxxxxx
var img;
var img_width = 1500/2;
var img_height = 1520/2;
function preload() {
img = loadImage("skull.png");
}
function setup() {
createCanvas(windowWidth, windowHeight);
background(30,30,30);
frameRate(10);
rectMode(CENTER);
}
function draw() {
strokeWeight(4);
fill(440,100,100);
ellipse(mouseX, mouseY, 80, 80);
if (mouseIsPressed)
image(img, mouseX-img_width/2, mouseY-img_height/2, img_width, img_height);
}