mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-05 20:49:15 +01:00
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
7 lines
292 B
Plaintext
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);
|
|
});
|