if you actually want to print the string lengths in a 100x100 grid
in the console just build a string equivalent to a row of the image
then output it with println instead of print. it probably won’t line
up but you could pad the numbers (something like) you get to some length to give you
an even print out
void function()
{
String s;
for(int x = 0; x < img.height;x++)
{
s = "";//this is terrible should use something like a string builder or whatever processing has
for(int y = 0; y < img.width; y++)
{
s += y + x * img.width;
}
println(s.length());
}
}