Hello, I have finished coding and the program runs well as indicated by the strategically-set labels I have set, but no graph is being plotted. I need help on how ensure its plotted. Thank you.
Looks like you have three opportunities for your canvas to not draw a line:
- xbefore = x , ybefore = y
- Canvas paint colour the same as canvas background colour ? You set paint colour to green after you call drawline.
- Clearing the canvas if x>CanvasWidth, and setting x and xbefore to 0