Skip to content

Add double bed jacquard punchcard generation#1

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/expand-image-conversion-capabilities
Draft

Add double bed jacquard punchcard generation#1
Copilot wants to merge 3 commits intomainfrom
copilot/expand-image-conversion-capabilities

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 7, 2026

The generator only supported standard 1:1 punchcards. This adds double bed jacquard support, where each design row is split into two punchcard rows: the original pattern row (colour selection) plus a configurable backing row.

New --jacquard flag

Mode Backing row
none Standard 1:1 card (default, no change to existing behaviour)
doublebed All stitches punched — solid/full-jacquard backing
birdseye Alternating checkerboard (x-x-x-...), phase-shifted each pair for a diagonal bird's eye grid
tuck Inverse of the pattern row — tuck-stitch backing

New function

build_double_bed_rows(rows, backing) applies the transformation after compose_card_rows, so layout and --repeat-height logic runs first and then rows are doubled.

Usage

python3 punchcard-generator.py design.png 24 motif 6 --jacquard doublebed
python3 punchcard-generator.py design.png 24 motif 6 --jacquard birdseye
python3 punchcard-generator.py design.png 24 motif 6 --jacquard tuck

A 6-row motif with --jacquard doublebed produces a 12-row card.

Copilot AI changed the title [WIP] Add support for double bed jacquard punchcards Add double bed jacquard punchcard generation Apr 7, 2026
Copilot AI requested a review from kevinlearnscoding April 7, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants