LayMeshDocs
中文

Path

path.lay
# Minimal complete example: pathpage=canvas(size=(100mm,75mm),background="#ffffff")page.add(path(commands=[move_to(0mm,20mm),quad_to(20mm,0mm,40mm,20mm),line_to(40mm,35mm),close()],fill="#e6f2f3",border_color="#087f8c",border_width=1mm),offset=(10mm,10mm))

Preview

Background
Path
Original example
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

Edits stay on this page
Dependencies
  • examples/manual/path.lay

Reproduce

sh
laymesh validate examples/manual/path.laylaymesh render examples/manual/path.lay -o figure.svglaymesh render examples/manual/path.lay -o figure.pdflaymesh render examples/manual/path.lay -o figure.png --dpi 300