Colour pinstripe/Display: Difference between revisions

Content deleted Content added
Petelomax (talk | contribs)
Added print menu
Petelomax (talk | contribs)
Line 748:
 
main()</lang>
 
Simply change constant colours to {CD_BLACK, CD_WHITE} for the monochrome tasks (as redirected here).
 
For the print tasks redirected here, note the routine draw_to() draws 4 bands each one quarter of
the page height (with truncation to whole pixels and knock-on-rounding), however cdCanvasGetSize()
actually returns {width, height, width_mm, height_mm}, the canvas size in pixels and in millimetres,
and from that it is assumed it would be trivial to change the calculation of h from height/4 to
1 inch, and also the "for y=1 to 4 do" to "while height do", all in that one draw_to() routine.
 
=={{header|PicoLisp}}==