Blitz Max.
' drawline.bmx
' draws a hair at the mouse position using Drawline.
Graphics 640,480
HideMouse
While Not KeyHit(KEY_ESCAPE)
Cls
x=MouseX()
y=MouseY()
DrawLine 32,24,x,y
DrawLine x-2,y,x-10,y
DrawLine x+2,y,x+10,y
DrawLine x,y-2,x,y-10
DrawLine x,y+2,x,y+10
Flip
Wend
How will it be possible to draw a star instead of hair.?
How will I set my codings?