Hey,
I've started reading 'Computer graphics for Java programmers' and ran into this problem:
How many pixels are put on the screen by the following call?
Both the answer 91 and the short explanation(100 - 10 + 1) are unclear to me. It would be great if somebody could explain it (for example, why we add 1?) or give some hints on this. I'm new to graphicsCode:g.drawLine (10, 20, 100, 50);
Thanks
Bookmarks