Remark 1
why did you comment this out:
//MIN = getArrayMin();
won’t work (I understand why, to test the if-clause)
Remark 2
That’s a duplicate: textSize(width/4);
Remark 3
This works:
if (MIN>60) {
fill(0);
} else {
fill(255);
}
BUT it must be directly before the ellipse command because at the moment, there is another fill command after this if-clause which overwrites the last fill value…
- Rule of thumb: Always do fill and stroke in
draw()not insetup()and before using the ellipse or rect or text command that has to get this color.
Remark 4
The textSize for numbers MIN with 3 digits is another issue than the fill color.
Remark 5
Remember to hit ctrl-t in processing for auto-format of your code (indents…).
Chrisir