xxxxxxxxxx
var x=0.001
var img;//var img makes it a undefined variable
function preload() {//preload setups objects before setup
img = loadImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAAAaVBMVEX///8AAACRkZH6+vrFxcXs7Oz19fXm5ubKysqsrKyMjIxNTU2ysrKYmJji4uJycnI+Pj7R0dHb29tHR0eenp5eXl6/v784ODhSUlKmpqYMDAxra2sTExO4uLggICAaGhowMDAnJyd/f38coq+GAAADA0lEQVRYhe2Z65KiMBCFCRhugmDE2yiO+v4PuYQE5RI6nWas2q2d80OrAnxi6JzuDp73q/9IfJX4z6LR08/i8Mew0XnPRioyvpwbJOWYq3Q6LAPz1MxVOgd0sg+BG31nRHBsAUsdNxTyE0FuVDmD+RFHZuziOOMbLLhR6cTeOpAZuzkEucs9t2z0fXNHssOc3J3RbI8jF+7kZmViyCsKmbHITg5oZFba0aAhQbI6oaCS2dWWISauj5fFTVwXy0Aw2ubQoFYger0E/YTI4XUJegehoyVk9oCcxM1MJ4LMFZMOiWiif3SCfOTfRH/wMX4w+Dx09WESnMWQJZNZCYheNNkWw15AtmV1cv5irLagP5jAvAsVba+GybeNqM1m2iKbUjv5g9WTF9wo5BOCTCxFchS6oqDhQqHTgYLGNXk5BR2j0J+ba/dORgpRXnveWZ+cbkW2g3mXWsSdMWztZLXQy1itW57ORvmxUqeEtarmrO7E1XnvWAqSb+ME9KLNx02JTo6iP5Y9xuDdICASNVjA5K4yE8PhUYIYJcHu6cBTkumzxouL92x84nFdvS/GBwbq0q4/OfLK9dOdm5M+YnFsfdZ9NBz2qohJY6vH1zDZq01/LvS/+lN9H8Iz0yUmJeMJ5YcTm+jS20fU/Q9izeiHokrDqOo1Tre816Bd93obUQcVattP2dNtu6mfg3mQwTWsrh7pIdL5DpcKamZWG5Bzjovz65mGRneFM46F28KdaaZD8IdRZC80XvuK2iVo88WvaDT22si9py60G/X8NPOifL0/h73q/uvddiOCesA+xb08yfWgeCf8PKjvjuRGKz9NZKkF1q1yvW+rNHcBv2VF0wWWrZa0AstSbC951WFpEdy3xd+CyexIJ1u3R+ivOBIbmhZ2Uu3CO8ud4d2j+ViLWH6VslZJ26xAfXmikkLR+nco/0CqkreQ+UB40gRwCcCksuW1aFnG+BotQ3LT2hQ9so9tgHG5gyfUzDY3fw+l66rApKNFmlazQcB93/+B93e/+rv1B5oCI0curVEwAAAAAElFTkSuQmCC")
}// img now means loadImage skull
//the data:image... is the image adress, it must be in some type of png form and not start with http must be data.
// this is an address of a skull, var img makes it an undefined variable
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {//coudn't solve white background on the image so I made the background white also
background(255);//background must be in draw or image repeats instead of making an img trail
noCursor() //this means that the cursor is invisible
scale(x,x)//the numbers translate into a percent which everything after is multiplyed by
if(x=x+0.01)
image(img, mouseX*1/x, mouseY*1/x);//need to multiply mouse x and y by two to make up for the scale being multiplyed by 50% it messes with the location of your mouse
}