Hi,
I have a basic program that draws a repeating pattern of sine waves and saves this as a tiff file.
I need to be able to output images that are large enough to print as backgrounds on sizes up to A1 but am struggling to be able to output anything this large.
Ive seen a few similar questions on the forum but am really struggling to apply it to my code.
Any help would be massivley appreciated
heres the code:
void setup(){
size(1500, 1500);
background (255);
float inc = TWO_PI/8.0;
for (int j=0; j<height; j+=200) {
float a = 0;
float prev_x = 0, prev_y = 100, x, y;
for (int i=0; i<width; i=i+4) {
x = i;
y = 100+j + sin(a) * 80.0;
line(prev_x, prev_y, x, y);
prev_x = x;
prev_y = y;
a = a + inc;
}
}
save("pattern.tif");
}
1