home *** CD-ROM | disk | FTP | other *** search
- 1 rem *********************************
- 2 rem * *
- 3 rem * 3d-grafik mittels hires-3 *
- 4 rem * *
- 5 rem * heimo ponnath hamburg 1985 *
- 6 rem * *
- 7 rem * hires-3 muss im speicher sein *
- 8 rem *********************************
- 9 rem
- 10 rem ++ initialisieren der grafik ++
- 15 rem
- 20 poke52,112:poke56,112:sys37498:goto60
- 25 rem
- 30 rem ++ up cursor setzen ++++++++++
- 35 rem
- 40 poke211,sp:poke214,zl:sys58640:return
- 45 rem
- 50 rem +++ eingabe der 3d-funktion ++++
- 55 rem
- 60 printchr$(147):sys34647:poke646,14:zl=5:sp=5:gosub40
- 65 print"funktion im programm:"
- 70 k=1:gosub180:k=0
- 75 print:printtab(3)"y="f$:print
- 80 printtab(5)chr$(18)"a"chr$(146)"lte oder "chr$(18)"n"chr$(146)"eue funktion?
- 85 [161]a$:[139]a$[179][177]"a"[175]a$[179][177]"n"[167]85
- 90 [139]a$[178]"a"[167]140
- 95 [153][199](147):sp[178]3:zl[178]12:[141]40:[133]"y=";f$:[151]646,6
- 100 [153][199](147)[199](17)[199](17)"180f$="[199](34)f$[199](34)
- 105 [153]"190deffna(x)="f$
- 110 [153]"run140":[153][199](19);
- 115 [151]631,13:[151]632,13:[151]633,13:[151]198,3:[128]
- 120 [143]
- 125 [143] +++ neubeginn des programmes ++
- 130 [143] +++ falls neue funktion ++
- 135 [143]
- 140 [153][199](147):[151]646,14
- 145 [143]
- 150 [143] +++ funktionen und variable +++
- 155 [143]
- 160 x[178]0:z[178]0:sp[178]0:zl[178]0:xu[178]0:xo[178]0:yu[178]0:yo[178]0:z3[178]0:z4[178]0:z5[178]0:z6[178]0:zu[178]0:zo[178]0
- 165 z1[178]0:z2[178]0:f1[178]1:f2[178]6:a[178]1:xa[178]0:xe[178]0:za[178]0:ze[178]0:dz[178]1:xt[178]0:xh[178]0:yt[178]0:yh[178]0:zz[178]1
- 170 [143]
- 175 a$[178]""
- 180 f$[178]"sin(x)*sin(z)"
- 185 [143]
- 190 [150][165]a(x)[178][191](x)[172][191](z)
- 195 [150][165]z(z)[178]z[173](2[172][186](2))
- 200 [139]k[178]1[167][142]
- 205 [143]
- 210 [143] ++ eingabe koordinatensystem ++
- 215 [143]
- 220 sp[178]1:zl[178]3:[141]40
- 225 [153][199](18)"unser system :"[199](146):sp[178]7:zl[178]5:[141]40
- 230 [133]"xu,xo=";xu,xo:zl[178]6:[141]40:[133]"yu,yo=";yu,yo:sp[178]9:zl[178]8:[141]40
- 235 z3[178]2[172]xo[172][186](2):z4[178]2[172]yo[172][186](2):[139]z3[179]z4[167][153]"zo maximal="z3:[137]245
- 240 [153]"zo maximal="z4
- 245 sp[178]9:zl[178]10:[141]40
- 250 z5[178]2[172]xu[172][186](2):z6[178]2[172]yu[172][186](2):[139]z5[177]z6[167][153]"zu minimal="z5:[137]260
- 255 [153]"zu minimal="z6
- 260 sp[178]7:zl[178]12:[141]40:[133]"zu,zo=";zu,zo:z1[178][165]z(zo):z2[178][165]z(zu)
- 265 [139]z1[177]xo[176]z1[177]yo[167]235
- 270 [139]z2[179]xu[176]z2[179]yu[167]235
- 275 [143]
- 280 [143] +++ eingabe zeichenparameter ++
- 285 [143]
- 290 zl[178]14:sp[178]1:[141]40:[153][199](18)"unsere zeichnung:"[199](146)
- 295 zl[178]16:sp[178]3:[141]40:[133]"zeichen- und hintergrundfarbe=";f1,f2
- 300 zl[178]18:sp[178]7:[141]40:[133]"schrittweite von z=";a
- 305 zl[178]20:[141]40:[133]"x-bereich xa,xe=";xa,xe
- 310 zl[178]21:[141]40:[133]"z-bereich za,ze=";za,ze
- 315 [143]
- 320 [143] +++ zeichnen +++
- 325 [143]
- 330 dz[178]a[173]2:xt[178]xu:xh[178]xo:yt[178]yu:yh[178]yo
- 335 hfl,f1,f2:trs,xu,xo,yu,yo
- 340 [143]
- 345 [143] ----- koordinatenkreuz ------
- 350 [143]
- 355 tln,xu,0,xo,0:tln,0,yu,0,yo:tln,z2,z2,z1,z1
- 360 [143]
- 365 [143] ----- z-schleife ------
- 370 [143]
- 375 [129]z[178]za[164]ze[169]dz:zz[178][165]z(dz):xt[178]xt[171]zz:xh[178]xh[171]zz:yt[178]yt[171]zz:yh[178]yh[171]zz
- 380 trs,xt,xh,yt,yh
- 385 funkt,a,xa,xe
- 390 [130]z
- 395 tex,"y="[170]f$,0,3
- 400 [143]
- 405 [143] ----- zeichnung fertig ------
- 410 [143]
- 415 [161]a$:[139]a$[178]""[167]415
- 420 hof
- 425 [143]
- 430 [143] +++++ menue ++++++
- 435 [143]
- 440 zl[178]23:sp[178]1:[141]40
- 445 [153][199](18)"e"[199](146)"nde "[199](18)"g"[199](146)"rafik"
- 450 zl[178]23:sp[178]18:[141]40
- 455 [153][199](18)"n"[199](146)"eu "[199](18)"d"[199](146)"rucken"
- 460 [161]a$:[139]a$[179][177]"e"[175]a$[179][177]"g"[175]a$[179][177]"n"[175]a$[179][177]"d"[167]460
- 465 [143]
- 470 [143] -------- option grafik -------
- 475 [143]
- 480 [139]a$[178]"g"[167]:han:[151]198,0:[146]198,1:hof:[137]460
- 485 [143]
- 490 [143] -------- option drucken ------
- 495 [143]
- 500 [139]a$[178]"d"[167]:han:[159]1,4,10:[152]1:[160]1:[158]34865:hof
- 505 [139]a$[178]"d"[167][159]1,4:[152]1:[152]1,"xu="xu,"xo="xo,"yu="yu,"yo="yo
- 510 [139]a$[178]"d"[167][152]1,"zu="zu,"zo="zo,"a="a
- 515 [139]a$[178]"d"[167][152]1,"xa="xa,"xe="xe,"za="za,"ze="ze:[152]1:[160]1:[137]460
- 520 [143]
- 525 [143] --- option neue zeichnung ----
- 530 [143]
- 535 [139]a$[178]"n"[167][138]
- 540 [143]
- 545 [143] --- option programmende ----
- 550 [143]
- 555 [128]
- 560 [143] ********* das wars ! **********
-