English
Experimente

Schiefe Astroide as Evolute the ellipsis, unfortunately only Screensaver-tauglich

 

p.specht


'Windowtitle "BILDSCHIRMSCHONER: Schiefe Astroide as Evolute the Ellipse"
'(CL) CopyLeft 2015-07 by P.woodpecker, Wien; OHNE JEGLICHE GEWÄHR!
'(Vereinfachte Formeln for Schmiegekreis-Mittelpunkt and -radius)
Windowstyle 16 | 64'24
Window 0,0-%maxx,%maxy:Randomize:font 2
var xh&=width(%hwnd)\2:var yh&=height(%hwnd)\2
declare a!,b!,x!,y!,xa!,ya!,xe!,ye!,xo!,yo!,w!
declare cw!,cccw!,sw!,sssw!,aa!,bb!,aambbda!,bbmaadb!
declare r!,v!,xl!,yl!,xv!,yv!
var f!=Pi()/180:usebrush 0,1
MEHR:
print "\n ENDE: ESC HALTEN! "
a!=-400
b!=200

REPEAT

    aa!=sqr(a!):bb!=sqr(b!)

    if a!<>0:aambbda!=(aa!-bb!)/a!:else :aambbda!=10000:endif

        if b!<>0:bbmaadb!=(bb!-aa!)/b!:else :bbmaadb!=10000:endif

            usepen 0,1+rnd(15),rgb(255,0,0):ellipsis xh&-a!,yh&+b! - xh&+a!,yh&-b!'alternative A: here
            x!=a!:y!=0 : xe!=aambbda!:ye!=0

            whileloop 0,360,30 :w!=&Loop*f!

                cw!=cos(w!):cccw!=cw!*sqr(cw!):sw!=sin(w!):sssw!=sw!*sqr(sw!)
                'Ellipsensegment:
                xa!=x!:ya!=y!:x!=a!*cw!:y!=b!*sw!
                '  usepen 0,1,rgb(255,0,0):line xh&+x!,(yh&-y!) - xh&+xa!,(yh&-ya!) 'alternative B
                'Zugehöriges Schief-Asteroidensegment:
                xo!=xe!:yo!=ye!:xe!=aambbda!*cccw!:ye!=bbmaadb!*sssw!
                ' usepen 0,1,rgb(0,0,255):line xh&+xe!,(yh&-ye!) - xh&+xo!,(yh&-yo!) ' Pos 1
                ' Schmiegekreis einzeichnen
                r!=sqrt(sqr(x!-xe!)+sqr(y!-ye!))
                usepen 0,1,rgb(255,200,255): ellipsis xh&+xe!+r!,yh&+ye!+r! - xh&+xe!-r!,yh&+ye!-r!
                usepen 0,1,rgb(0,0,255):line xh&+xe!,(yh&-ye!) - xh&+xo!,(yh&-yo!)' alternative Pos. 2

            endwhile

            waitinput 10
            ' Achsenänderung by Durchlauf:
            a!=a!+1
            b!=b!-1

            if a!>800

                a!=-200
                b!=400

            endif

        until %key=27

        END
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/19/21  
 



Zum Experiment


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

776 Views

Untitledvor 0 min.
Stringray01/05/22
Ernst07/21/21
Uwe ''Pascal'' Niemeier06/13/21
R.Schneider06/04/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (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