LayMeshDocs
中文

Showcase

showcase.lay
# Authored on a 297 x 420 mm grid, then uniformly scaled to a 16 cm page.import { photo, icon } from "./components/materials.lay"import { card } from "./components/card.lay" scale = 160 / 297page = canvas(name="LayMesh layout atlas", size=(16 cm, 420 mm * scale), background="#ffffff")artboard = group()artboard.add(rect(size=(297 mm, 420 mm), fill="#ffffff"), target=artboard.top_left)font_family = "DejaVu Sans"ink = "#213047"muted = "#66768b"teal = "#087f8c"gold = "#e4a63a"

Preview

Background
Showcase
Original example
Total —
Details

Not run yet

Measured in this browser; excludes debounce.

Edits stay on this page
Dependencies
  • examples/assets/icon.svg
  • examples/assets/photo.png
  • examples/components/card.lay
  • examples/components/materials.lay
  • examples/showcase.lay

Reproduce

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