| |
|
|
funkheld | Hello, good day.
Why comes under with DrawText x& and y& "0" out ? The line won't drawn.
Thank you. greeting
{$cleq}
declare ende&,bild&
Declare x&,y&,r&
Window 20,20-600,600
Cls $ffffff
USEP 0,1,RGB(0,0,200)
r&=200
whileloop 0,300000,1000
getcircp(r&,&loop)
startpaint %hdc
Line 300,300-(300+x&),(300+y& )
endpaint
EndWhile
DrawText 10,10,Str $(x&)
DrawText 10,30,Str $(y&)
ende&=1
WHILE ende&
waitkey
ENDWHILE
End
nProc getCircP(long r,w)
global x&,y&
x&=long(sin(0.0174532925199433*float(w)/1000.0)*float(r))
y&=long(sin(0.0174532925199433*float((w+90000))/1000.0)*float(r))
endproc
|
|
|
| |
|
|
|
E.T. | x& as well as y& are always 0, d.h. it can no Liene with length 0 drawn go.
Test :
|
|
|
| Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 12/19/13 ▲ |
|
|
|
|
funkheld | Hmmm...it'll still getcircp(r&,&loop) r& and w over give , there can means no "0" rauskommen with x& and y& , Why comes there "0" out ?
greeting |
|
|
| |
|
|
|
| Globale are - as well as described - readonly. |
|
|
| |
|
|