Tutorial 4: Using Multi-Shuttle Patterns
Let's create a two-shuttle pattern for color contrast.
Step 1: Two-Shuttle Syntax
Create two_shuttle.tatml:
pattern "Two Color Flower" {
thread: size20, blue
shuttles: 2
shuttle1 {
// Blue thread - center and structure
center: R(5, p, 5, p, 5, p, 5, p, 5)
frame: C(12, join(center.picot1), 12, p, 12, join(center.picot3), 12)
}
shuttle2 {
// Contrasting thread - decorative elements
accent1: R(4, p, 4, join(center.picot2), 4, p, 4)
accent2: R(4, p, 4, join(center.picot4), 4, p, 4)
connector: C(8, join(accent1.picot2), 8, join(accent2.picot1), 8)
}
}
Step 2: Understanding Shuttle Blocks
shuttle1 { ... }- elements made with the first shuttleshuttle2 { ... }- elements made with the second shuttle- Joins can cross between shuttles:
join(center.picot2)from shuttle2 to shuttle1