English
Forum

Why comes with the Übergabe of x& and y& with XPSE "0" out ?

 

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

 
12/19/13  
 




E.T.
x& as well as y& are always 0, d.h. it can no Liene with length 0 drawn go.

Test :
...

whileloop 0,300000,1000

    getcircp(r&,&loop)
    StartPaint %hwnd
    Line 300,300-(300+x&),(300+y& )
    endpaint
    'Show:
    DrawText 10,10,st$(&loop) + " - " + Str $(x&)
    DrawText 10,30,st$(&loop) + " - " + Str $(y&)
    Sleep 200
    'Show end
    EndWhile...
 
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
 
12/20/13  
 



Globale are - as well as described - readonly.
 
07/09/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.209 Views

Untitledvor 0 min.
E.T.12/25/15
Georg Teles09/19/15
Nico Madysa12/18/14
Pedro Miguel10/04/14
More...

Themeninformationen

this Topic has 3 subscriber:

funkheld (2x)
iF (1x)
E.T. (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie