| |
|
|
p.specht
|
Window Title ""
'plasma-effect in XProfan-11.2a free
'https://rosettacode.org/wiki/Plasma_effect |(lodev.org)
declare w&,h&,x&,y&,c&,tm!: w&=169 : h&=126
Window w&+8,h&+38+38:font 2:appendmenubar 100,"XProfan Plasma"
$IFNDEF COMPILER
print "\n\n\nCOMPILE PLEASE!":waitinput 2000
$ENDIF
:proc dist :parameters a!,b!,c!,d!
return Sqrt(sqr(a!-c!)+sqr(b!-d!)):endproc
Repeat: tm!=tm!+5.142857
Whileloop 1,h&,6:y&=&Loop:whileloop 1,w&,6:x&=&Loop
c&=32*(sin(dist(x&+tm!,y&,128,128)/8)+sin(dist(x&,y&,64,64)/8)\
+sin(dist(x&,y&+tm!/7,192,64)/7)+cos(dist(x&,y&,192,100)/8)+4)
usepen 0,6,RGB(c&,c&*2,255-c&):line x&,y&-x&+1,y&+5
endwhile:EndWhile:Until 0
|
|
|
| XProfan 11Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'... | 05/30/21 ▲ |
|
|
|