void setup () {
size ( 800 , 800 );
}
void draw () {
fill(0);
int[] x = {
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
50, 61, 83, 69, 71, 50, 29, 31, 17, 39,
676, 61, 83, 69, 71, 50, 29, 31, 17, 39
};
fill(0);
int row = 0;
float spacing = 25;
float xx = 0;
for (int i = 0; i < x.length; i++) {
xx += spacing;
textSize(20);
if(xx>width){
xx = 0;
row++;
}
println(row);
text(x[i],xx,50+row*20);
}
}
1 Like