Colour pinstripe/Printer: Difference between revisions

Just noticed the second part of the task
(Added PicoLisp)
(Just noticed the second part of the task)
Line 18:
(pdf "pinstripes"
(a4) # 595 x 842 dots
(foruse X(R 595G B)
(colorlet (popI 'Red)0 (pop 'Green) (popStep 'Blue1)
(vlinefor X 0 842) ) )595
(when (= Step (inc 'I))
(setq
I 0
R (pop 'Red)
G (pop 'Green)
B (pop 'Blue) ) )
(color R G B
(vline X 0 842) )
(when (=0 (% X 72)) # 1 inch
(setq I 0 Step (* 2 Step)) ) ) ) )
(page) ) )</lang>
 
Anonymous user