Files
FreeJ/scripts/processing/basic/displaying.pde
Jaromil ae7b1ad056 progresses on processing script
processing-js 0.4 has been merged in some relevant parts
basic and topic scripts added for test
color handling fixed, more scripts show up now
2010-02-12 18:36:54 +01:00

7 lines
292 B
Plaintext

size(200, 200);
PImage a; // Declare variable "a" of type PImage
a = loadImage("data/arch.jpg", null, function(){ // Load the images into the program
image(a, 0, 0); // Displays the image from point (0,0) when image data has been loaded
image(a, width/2, 0, a.width/2, a.height/2);
});