Set a stroke before drawing a shape. A cmyk color used while exporting to a .pdf or an image. Handy if the file is used for print.
cmykStroke(c, m=None, y=None, k=None, alpha=1)¶
Set a stroke using a CMYK color before drawing a shape. This is handy if the file is intended for print.
Sets the CMYK stroke color. Each value must be a float between 0.0 and 1.0.
x, y = 20, 20 lines = 20 color_step = 1.00 / lines strokeWidth(10) for i in range(lines): cmykStroke(0, i * color_step, 1, 0) line((x, y), (x, y + 200)) translate(12, 0)