Colour bars/Display: Difference between revisions
Content added Content deleted
m (moved Colour Bars/Display to Colour bars/Display: Fixes capitalization) |
({{header|ZX Spectrum Basic}}) |
||
Line 4: | Line 4: | ||
A typical colour bar sequence would be Black, Red, Green, Blue, Magenta, Cyan, Yellow, White |
A typical colour bar sequence would be Black, Red, Green, Blue, Magenta, Cyan, Yellow, White |
||
=== {{header|ZX Spectrum Basic}} === |
|||
<lang basic> |
|||
10 REM The ZX Spectrum display is 32 columns wide, so we have 8 columns of 4 spaces |
|||
20 FOR r=0 TO 20: REM There are 21 rows |
|||
30 FOR c=0 TO 7: REM We use the native colour sequence here |
|||
40 PRINT " ";: REM four spaces, the semicolon prevents newline |
|||
50 NEXT c |
|||
60 REM at this point the cursor has wrapped, so we don't need a newline |
|||
70 NEXT r |
|||
</lang> |
|||
[[Category:Test card]] |
[[Category:Test card]] |