Skip to content

Instantly share code, notes, and snippets.

@wonderburg7
Last active December 13, 2018 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wonderburg7/51a51c93dc53eed1d98710091a01fe1f to your computer and use it in GitHub Desktop.
Save wonderburg7/51a51c93dc53eed1d98710091a01fe1f to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment