mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Example 06-02 from "Getting Started with Processing"
|
||||
// by Reas & Fry. O'Reilly / Make 2010
|
||||
|
||||
PImage img1;
|
||||
PImage img2;
|
||||
|
||||
void setup() {
|
||||
size(480, 120);
|
||||
img1 = loadImage("lunar.jpg");
|
||||
img2 = loadImage("capsule.jpg");
|
||||
}
|
||||
|
||||
void draw() {
|
||||
image(img1, -120, 0);
|
||||
image(img1, 130, 0, 240, 120);
|
||||
image(img2, 300, 0, 240, 120);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user