Custom dashes
page.add(line(dx=84 mm, dy=0 mm, line_color="#087f8c", line_width=1.3 mm, line_dash=[5 mm, 2 mm], line_cap=round), target=page.top_left, offset=(16 mm, 35 mm))page.add(line(dx=84 mm, dy=0 mm, line_color="#e67563", line_width=1.3 mm, line_dash=[1 mm, 2 mm, 5 mm, 2 mm], line_cap=round), target=page.top_left, offset=(16 mm, 52 mm))# Gallery: shapes / dashespage = canvas(name="Custom dashes", size=(120 mm, 80 mm), background="#f7f9fc")font = "DejaVu Sans"heading = text(content="Custom dashes", font_family=font, font_size=14 pt, color="#203864")page.add(heading, target=page.top_left, offset=(7 mm, 5 mm))# BEGIN DEMOpage.add(line(dx=84 mm, dy=0 mm, line_color="#087f8c", line_width=1.3 mm, line_dash=[5 mm, 2 mm], line_cap=round), target=page.top_left, offset=(16 mm, 35 mm))page.add(line(dx=84 mm, dy=0 mm, line_color="#e67563", line_width=1.3 mm, line_dash=[1 mm, 2 mm, 5 mm, 2 mm], line_cap=round), target=page.top_left, offset=(16 mm, 52 mm))# END DEMOPreview
Background
Dependencies
examples/gallery/shapes/dashes.lay
Reproduce
laymesh validate examples/gallery/shapes/dashes.laylaymesh render examples/gallery/shapes/dashes.lay -o figure.svglaymesh render examples/gallery/shapes/dashes.lay -o figure.pdflaymesh render examples/gallery/shapes/dashes.lay -o figure.png --dpi 300