Hello,
Since I just started, I'm doing something simple. You draw with your mouse pointer (hold down left button). But gaps can appear in the lines once in a while. Why is that happening? Here is the code:
Since I just started, I'm doing something simple. You draw with your mouse pointer (hold down left button). But gaps can appear in the lines once in a while. Why is that happening? Here is the code:
Strict Local x#=MouseX() Local y#=MouseY() Local width#=800 Local height#=800 Graphics width,height,0 While Not KeyDown(Key_Escape) DrawText "Right button = Clear screen",0,0 DrawText "ESC = quit",0,15 If x And y <> 0 If MouseDown(1) DrawLine(x,y,MouseX(),MouseY()) Plot MouseX(),MouseY() EndIf If MouseHit(2) Then Cls EndIf x=MouseX();y=MouseY() Flip Wend