Pinstripe/Printer: Difference between revisions

From Rosetta Code
Content added Content deleted
(Initial content)
 
Line 10: Line 10:


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

Revision as of 22:43, 23 May 2011

Pinstripe/Printer 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 demonstrate the creation of 1 pixel wide pinstripes across the width of the graphics printer. The pinstripes should alternate one pixel white, one pixel black.

After the first inch of printing, we switch to a wider 2 pixel wide pinstripe pattern, alternating two pixels white, two pixels black.

We then switch to 3 pixel wide for the next inch, and then 4 pixels wide for the 4th inch.

The rest of the page is left blank and the page is ejected.