PImage img1, img2;
void setup() {
background(0,0);
size(640, 640);
noStroke();
rectMode(CENTER);
img1 = loadImage("https://i.ibb.co/w6Vx0wp/Nehlet2-small-white.png");
img2 = loadImage("https://i.ibb.co/FY0xQnG/Her-Benificence2-small-white.png");
imageMode(CENTER);
}
void draw() {
background(51);
fill(255, 204);
// rect(mouseX, height/2, mouseY/2+10, mouseY/2+10);
// img1.updatePixels();
// img1 = loadImage("Gas Giant with ring-white.png");
// img1.resize(mouseY/2+1, mouseY/2+1);
image(img1, mouseX, height/2, mouseY/2+1, mouseY/2+1);
fill(255, 204);
int inverseX = width-mouseX;
int inverseY = height-mouseY;
image(img2, inverseX, height/2, (inverseY/2)+10, (inverseY/2)+10);
}
</script>
<canvas> </canvas>
</body>
</html>