Skip to content

Instantly share code, notes, and snippets.

@tboydar
Created October 4, 2013 03:19
Show Gist options
  • Save tboydar/6820471 to your computer and use it in GitHub Desktop.
Save tboydar/6820471 to your computer and use it in GitHub Desktop.
//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