home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Falcon 030 Power 2
/
F030_POWER2.iso
/
ST_STE
/
DEMOS
/
MEGADEMO
/
PASSIONP.ARJ
/
PASSIONP.MSA
/
JELLY
/
GEL_EDGE.LST
< prev
next >
Wrap
File List
|
1997-03-05
|
2KB
|
51 lines
' **** Little proggy which creates the "jelly" edges of the cube for ****
' **** a jelly_coef between 16 and -8. (The height is always 96) ****
' I put a lot of mess in this program so that the edges look nice, so......
a$=SPACE$(96*25*2) ! 25 edges, with a height of 96 each.
adr%=VARPTR(a$)
~XBIOS(5,L:-1,L:-1,W:0)
' * First type of edge: _______
' * \ /
' * \ /
' * ) (
' * / \
' * / \
' * -------
FOR comp%=24 TO 31
DPOKE adr%,32*4 ! Cos sin(0)<>0. (?!)
adr%=adr%+2
FOR y%=1 TO 94
edge%=33+(comp%-33)*SQR(SIN(PI*y%/95))
DPOKE adr%,edge%*4 ! Multiply by 4, cos adresse of a zoom routs=4 bytes.
adr%=adr%+2
NEXT y%
DPOKE adr%,32*4 ! Cos sin((95*pi)/95)<>0. (?!)
adr%=adr%+2
NEXT comp%
' * Second type of edge: _______
' * | |
' * | |
' * | |
' * -------
FOR y%=0 TO 95
DPOKE adr%,32*4
adr%=adr%+2
NEXT y%
' * Last type of edge: _______
' * / \
' * ( )
' * \ /
' * -------
FOR comp%=33 TO 48
FOR y%=0 TO 95
edge%=32-(31-comp%)*SQR(SIN(PI*y%/95))
DPOKE adr%,edge%*4 ! Multiply by 4, cos adresse of a zoom routs=4 bytes.
adr%=adr%+2
NEXT y%
NEXT comp%
' *
' * Save the gel edges.
' *
adr%=VARPTR(a$)
BSAVE "a:\jelly\gel_edge.xxx",adr%,25*96*2