Watch FunProgramming [video 48]
Copy this image of an adorable kitten onto your desktop
http://upload.wikimedia.org/wikipedia/commons/thumb/d/dc/Young_cats.jpg/320px-Young_cats.jpg
Create a new sketch in Processing and save the sketch as “LoadImage”
Save the kitten image to your project (using “Sketch” then ”Add file” in the Processing menu)
Here’s my program:
PImage myphoto;
void setup()
{
size(500,500);
myphoto = loadImage("320px-Young_cats.jpg");
}
void draw()
{
image(myphoto,0,0);
}
Type in my program and run it.
Change the program to animate the kitten image by moving it around the screen.
Change the program to move the image to where you click with the mouse.
Show a mentor, mark the board and claim a prize.