| était grad erwünscht:
{$cleq}
cls
usepen 0,0,$FF0000
/*
paramètre:
1,2:zeichne wohin:x,y
3:taille:radius
4,5:gradvon,gradbis
6:jeden wievielten Punkt
7:ligne number sur combien 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,loop)
y=GetCircP(r,90000+loop)
setpixel xp+x,yp+y,0
}
line xp,yp - xp+GetCircP(r,target),yp+GetCircP(r,target+90000)
}
getCircP(long r,w){
return sin(0.0174532925199433*w/1000.0)*r
}
Reines XProfan:
'{$ Cleq}
cls
usepen 0,0,$FF0000
'paramètre:
'1,2:zeichne wohin:x,y
'3:taille:radius
'4,5:gradvon,gradbis
'6:jeden wievielten Punkt
'7:ligne number sur combien 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
parameters xp&,yp&,r&,df&,dt&,step&,target&
declare x&,y&
df&=df&*1000
dt&=dt&*1000
step&=step&*1000
target&=180-target&
target&=target&*1000
whileLoop df&,dt&,step&
x&=GetCircP(r&,&loop)
y&=GetCircP(r&,90000+&loop)
setpixel xp&+x&,yp&+y&,0
Wend
line xp&,yp& - xp&+GetCircP(r&,target&),yp&+GetCircP(r&,target&+90000)
endproc
proc getCircP
parameters r&,w&
return sin(0.0174532925199433*w&/1000.0)*r&
endproc
|
|