RosettaCodeData/Task/Draw-a-cuboid/ZX-Spectrum-Basic/draw-a-cuboid.zx
2016-12-05 22:15:40 +01:00

6 lines
301 B
Text

10 LET width=50: LET height=width*1.5: LET depth=width*2
20 LET x=80: LET y=10
30 PLOT x,y
40 DRAW 0,height: DRAW width,0: DRAW 0,-height: DRAW -width,0: REM Front
50 PLOT x,y+height: DRAW depth/2,height: DRAW width,0: DRAW 0,-height: DRAW -width,-height
60 PLOT x+width,y+height: DRAW depth/2,height