Last active
December 13, 2018 23:26
-
-
Save wonderburg7/51a51c93dc53eed1d98710091a01fe1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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