| War grad erwünscht:
{$cleq}
cls
usepen 0,0,$FF0000
/*
parameter:
1,2:zeichne wo:x,y
3:größe:radius
4,5:gradvon,gradbis
6:cada wievielten Punkt
7:linie en wieviel grad
*/
paintWhl(50,50,50,150,210,5,-30)
paintWhl(120,50,50,150,210,5,-20)
paintWhl(190,50,50,150,210,5,-10)
paintWhl(260,50,50,150,210,5,0)
paintWhl(330,50,50,150,210,5,10)
paintWhl(400,50,50,150,210,5,20)
paintWhl(470,50,50,150,210,5,30)
waitinput
end
paintWhl(long xp,yp,r,df,dt,step,target){
long x,y
df=df*1000
dt=dt*1000
step=step*1000
target=180-target
target=target*1000
whileLoop df,dt,step {
x=GetCircP(r,bucle)
y=GetCircP(r,90000+bucle)
setpixel xp+x,yp+y,0
}
line xp,yp - xp+GetCircP(r,target),yp+GetCircP(r,target+90000)
}
getCircP(long r,w){
volver sin(0.0174532925199433*w/1000.0)*r
}
Reines XProfan:
'{$ Cleq}
cls
usepen 0,0,$FF0000
'parameter:
'1,2:zeichne wo:x,y
'3:größe:radius
'4,5:gradvon,gradbis
'6:cada wievielten Punkt
'7:linie en wieviel grad
paintWhl(50,50,50,150,210,5,-30)
paintWhl(120,50,50,150,210,5,-20)
paintWhl(190,50,50,150,210,5,-10)
paintWhl(260,50,50,150,210,5,0)
paintWhl(330,50,50,150,210,5,10)
paintWhl(400,50,50,150,210,5,20)
paintWhl(470,50,50,150,210,5,30)
waitinput
end
proc paintWhl
parámetros xp&,yp&,r&,df&,dt&,step&,target&
declarar x&,y&
df&=df&*1000
dt&=dt&*1000
step&=step&*1000
target&=180-target&
target&=target&*1000
whileLoop df&,dt&,step&
x&=GetCircP(r&,&bucle)
y&=GetCircP(r&,90000+&bucle)
setpixel xp&+x&,yp&+y&,0
wend
line xp&,yp& - xp&+GetCircP(r&,target&),yp&+GetCircP(r&,target&+90000)
ENDPROC
proc getCircP
parámetros r&,w&
volver sin(0.0174532925199433*w&/1000.0)*r&
ENDPROC
|
|