Created
October 4, 2013 03:19
-
-
Save tboydar/6820471 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
//show photos | |
PImage photo_a; | |
PImage photo_b; | |
PImage photo_c; | |
void setup() //設定 | |
{ | |
size(300,300); | |
photo_a = loadImage("a.jpg"); | |
photo_b = loadImage("b.jpg"); | |
photo_c = loadImage("c.jpg"); | |
frameRate(10); | |
} | |
int ax =10, bx=100, cx=1; | |
void draw() //繪圖 | |
{ | |
background(0); | |
image(photo_a, 30, 10, 30, 30); | |
image(photo_b, 30, 50, 30, 30); | |
image(photo_c, 30, 90, 30, 30); | |
} | |
void mousePressed() //滑鼠按下 | |
{ | |
println(mouseX); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment