275
edits
Line 37: | Line 37: | ||
== End of Semester == | == End of Semester == | ||
Snow Cannon | |||
<source lang = "java"> | <source lang = "java"> | ||
Line 87: | Line 89: | ||
} | } | ||
</source> | |||
White Imagination | |||
<source lang = "java"> | |||
PImage img; | |||
PImage sourceImage; | |||
void setup(){ | |||
size(640, 480); | |||
sourceImage = loadImage ("Alpenblick2.png"); | |||
image (sourceImage, 0, 0, 640, 480); | |||
} | |||
void draw(){ | |||
img = loadImage ("Alpenblick5.png"); | |||
int x = 10; | |||
int width = 550; | |||
int height = 8; | |||
img.resize(640, 460); | |||
for (int i = 20; i < 480; i = i +25) { | |||
copy(img, x, i, width, height, x, i, width, height); | |||
} | |||
} | |||
</source> | </source> |
edits