Case Study: Canvas-018

Yunbroidery Stitch Algorithm Syntax Card

Module 1: Metadata Table

Field ItemMetadata Content
Artwork IDCanvas-018
Perceptual ImageFriendship & Harmony (好朋友)
Basic Structure2-3-3-2 grid rectangular mirror-symmetric unit (3 x 4 grid unit)
Thread SpecDMC No. 5 / No. 25 (3 strands folded)
Color SchemeGreen, Yellow (Equivalent to Red and Blue paths in animation)
Stitch DirectionGreen: Top-Left to Bottom-Right; Yellow: Bottom-Right to Top-Left
Syntax TypeMirror Symmetry & Axial Translation

Module 2: Starting & Vector Operations

1. Stitch Sequence & Region Algorithm

  • Phase 1 Base Unit Region (Stitches 1 to 16): Constructed in Region 1 (x: 0 to 80, y: 20 to 100). Diagonal stitches from Top-Left to Bottom-Right (Red path: 1-2, 7-8, 9-10, 15-16) and Top-Right to Bottom-Left (Blue path: 3-4, 5-6, 11-12, 13-14) cross symmetrically to fill the unit.
  • Phase 2 Axial Translation (Stitches 17 to 48): After Region 1 is complete, translate the sequence right by ΔX = 4 grid units (80 SVG units) to form Region 2 (Stitches 17-32), and translate right again by ΔX = 4 grid units to form Region 3 (Stitches 33-48).

2. Vector Angles & Geometric Parameters

  • Vector Slope & Angles:
    • Top-Left to Bottom-Right (135°): Direction vector ΔX = 1, ΔY = 1, length approx. 5.1 mm (28.28 SVG units), angle 135°.
    • Top-Right to Bottom-Left (45°): Direction vector ΔX = -1, ΔY = 1, length approx. 5.1 mm (28.28 SVG units), angle 45°.
    • Multi-grid Long Diagonal: Direction vector ΔX = 2, ΔY = 2, length approx. 10.1 mm (56.57 SVG units).

Module 3: Structural Mechanics & Topology

1. Structural Spine & Intersection Nodes

  • Intersection Nodes: Red and blue diagonal paths intersect at central points such as (50, 50) and (50, 70), creating rigid grid locking points.
  • Bi-directional Symmetry Lock: Primary (135°) and secondary (45°) diagonal forces counter balance each other, preventing fabric distortion over time.

2. Tension Distribution Mechanism

  • Stress Dispersion: Utilizing a 2-3-3-2 span layout, long diagonal stitches (10.1 mm) handle structural tension while short stitches (5.1 mm) anchor the boundary, evenly dispersing physical stress across the 80×80 grid region.

Module 4: Vector API & Dynamic Data

1. SVG Geometry Parameters

  • ViewBox: -10 -10 280 130
  • Grid System: 20-unit spacing dashed grid lines (c018_grid_line).
  • Color Mapping: Red line (#ef4444) corresponds to Green thread; Blue line (#3b82f6) corresponds to Yellow thread.

2. Interactive SVG Animation Card

Area 1 (1-16) Area 2 (17-32) Area 3 (33-48) 1 2/4 3 5/23 6/8 7 9 10/12 11/25 13/31 14 15 16 17 18/20 19 21/39 22/24 26/28 27/41 29/47 30 32 33 34/36 35 37 38/40 42/44 43 45 46 48

Module 5: Visual Gallery

Front ViewBack ViewDesign Draft
Front: Green/Yellow mirror diagonal checkerboard patternBack: Diagonal parallel locking stitches showing structural force layoutDraft: Precise grid coordinates and path labels (Stitches 1-48)

Module 6: Algorithm Extensions & Variant Syntax

  • Physical Coverage: Bi-directional diagonal coverage exceeds 85%, minimizing fabric exposure through alternating long and short stitches.
  • Variant Matrix:
    • stepSequence = [2, 3, 3, 2]
    • unitSpacing = 80 (SVG units, equivalent to 4 grid units)
    • gapRatio = 0.0 (Seamless tiling)
  • Procedural Logic: Adjusting unitSpacing and axis rotation angles allows this mirror-rectangular logic to scale into an infinitely repeating architectural mesh pattern.
Scroll to Top