I have this problem:
linesize = 20 counter % linesize == 1 // what does this line mean?
I have this problem:
linesize = 20 counter % linesize == 1 // what does this line mean?
It means the the variable counter
is of the form $x.20 +1 (x \in \mathbb{N})$ or in other words, counter is One more than a multiple of 20 (21,41,61 etc.)