Write language name in 3D ASCII: Difference between revisions
m
→{{header|ZX Spectrum Basic}}: fixed the first example
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
m (→{{header|ZX Spectrum Basic}}: fixed the first example) |
||
Line 386:
to cause a colour switch using a traditional space (ascii 32),
but the output would still look the same.
Fixed the error and removed the need for 2^z.
<lang zxbasic> 10
20
30 FOR
40 READ b(m,l)
50
60 NEXT
70 NEXT l▼
80 INK 2: REM our shadow will be red
▲100 PAPER 0: REM black background
▲120 CLS
150 GO SUB 2000: REM draw shadow▼
▲170 LET r=10: REM foreground will start on row 6
999 STOP▼
▲180 LET c=3: REM foreground will start on column 3
▲999 STOP
1000 REM convert to binary bigmap
1010 LET
1040
1050 IF z>=1 THEN GO TO 1020
▲1060 IF t>=(2^z) THEN LET d$=CHR$(143): LET t=t-(2^z): LET sf=1: REM 143 is a block
▲1090 RETURN
2000 REM display the big letters
2010 FOR l=1 TO 5: LET c1=0: REM our 5 rows
2030 FOR m=1 TO 5: REM bigmap for each character
2040 LET
2050 GO SUB 1000
2060 LET c1=c1+1: REM PRINT
2080 NEXT
2090
9000 DATA 30,17,30,17,30: REM B
9010 DATA 14,17,31,17,17: REM A
|