Colour pinstripe/Display: Difference between revisions

From Rosetta Code
Content deleted Content added
initial content
 
{{omit from|ZX Spectrum Basic}}
Line 1: Line 1:
{{draft task}}
{{draft task}}


The task is to create 1 pixel wide colour pinstripes across the width of the graphics display. The pinstripes should alternate between each the primary colours black and white pinstripes should be included. A typical pinstripe sequence woud be black, red, green, blue, magenta,cyan, yellow, white.
The task is to create 1 pixel wide colour pinstripes across the width of the graphics display. The pinstripes should alternate between each of the primary colours. Black and white pinstripes should be included. A typical pinstripe sequence woud be black, red, green, blue, magenta,cyan, yellow, white.


After filling the top quarter of the, we switch to a wider 2 pixel wide pinstripe pattern. Halfway down the display we switch to 3 pixel wide pinstripe and then finally to a 4 pixels wide pinstripe for the last quarter of the display.
After filling the top quarter of the, we switch to a wider 2 pixel wide pinstripe pattern. Halfway down the display we switch to 3 pixel wide pinstripe and then finally to a 4 pixels wide pinstripe for the last quarter of the display.

{{omit from|ZX Spectrum Basic|Only one ink and paper colour per character space are allowed}}


[[Category:Test card]]
[[Category:Test card]]

Revision as of 21:04, 22 May 2011

Colour pinstripe/Display is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

The task is to create 1 pixel wide colour pinstripes across the width of the graphics display. The pinstripes should alternate between each of the primary colours. Black and white pinstripes should be included. A typical pinstripe sequence woud be black, red, green, blue, magenta,cyan, yellow, white.

After filling the top quarter of the, we switch to a wider 2 pixel wide pinstripe pattern. Halfway down the display we switch to 3 pixel wide pinstripe and then finally to a 4 pixels wide pinstripe for the last quarter of the display.