Pattern Composition
Simple Pattern Reference
import "./motifs/basic_flower.tatml" as flower
pattern "Garden" {
motif1: use flower
motif2: use flower
// Connect motifs
chain1: C(5, join(motif1.ring1.picot2), 5, join(motif2.ring1.picot1), 5)
}
Pattern with Connection Points
import "./motifs/petal.tatml" as petal
pattern "Six Petal Flower" {
center: R(3, p, 3, p, 3, p, 3, p, 3, p, 3)
repeat 6 {
petal[current]: use petal with {
connect center.picot[current] to petal.ring1.picot1
}
}
}