Hello,
More Circles.
include "gp.inc"
OpenWindow 800,600,1
fo = LoadFont "arial",14,0
SetSmoothMode 2
kx = GetWidth ()/2
ky = GetHeight()/2
single k=0
While KeyDown(27)=0
ClsColor &HFFFFFFFF
iF KeyDown(40) then
k +=1
Else iF KeyDown(38) then
k -=1
End iF
iF k>360 then
k=0
Else iF k<0 then
k=360
End iF
DrawCircle kx-200,ky-200,400,2, &HFF000000
DrawLine kx, ky, kx+200, ky,1, &HFF0000FF
DrawLine kx, ky, kx+cos(rad(k))*200,ky+sin(rad(k))*200,1,&HFF0000FF
degree = k + "°"
For i=0 To 360 step 2
SetPixel kx+cos(i)*30,ky+sin(i)*30,0xFF000000
Next
DrawText fo,kx+cos(rad(k/2))*60-12/2,ky+sin(rad(k/2))*60-12/2, degree, 0xFF000000
DrawText fo,10,10, "RADIANS " + str(rad(degree),6),0xFF000000
Sync
SetFps 24
Wend
CloseWindow