Colour bars/Display: Difference between revisions

Tidy up task definition (most modern display hardware no longer uses palettes as such)
(Tidy up task definition (most modern display hardware no longer uses palettes as such))
Line 1:
{{draft task}}
The task is to display a series of colourcolor bars across the width of the display. The colourcolor bars should either utilizeuse the system palletpalette, or the primarysequence coloursof andcolors: blackBlack, andRed, whiteGreen, barsBlue, shouldMagenta, alsoCyan, beYellow, includedWhite.
 
The task is to display a series of colour bars across the width of the display. The colour bars should either utilize the system pallet, or the primary colours and black and white bars should also be included.
 
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
<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
Line 14 ⟶ 10:
50 NEXT c
60 REM at this point the cursor has wrapped, so we don't need a newline
70 NEXT r</lang>
</lang>
 
[[Category:Test card]]
Anonymous user