yasuki_core.card_art#
Classes
|
A reproducible art-swap recipe: the donor's art landed onto a specific recipient printing. |
Functions
|
The art rect for an (era, layout type) key, falling back to the era's then the modern Strategy window. |
|
Which generic card back a set's printings use: |
|
A card printing's (era, layout type) key into ART_RECTS. |
|
Shrink box to the target aspect ratio, centered, so a resize to target fills without distortion. |
|
A stable synthetic print id for a recipe, negative to never collide with DB serial ids. |
|
Map a set's release date to its art-layout era band; the modern band for an unknown date. |
|
Art-layout era for a set. |
The raw art-layout data (rects, era bands, layout map) for serving to the browser canvas. |
|
|
Mon overlays for a card's keywords on the modern frame; empty off-era or with no mon keywords. |
|
Frame-element overlays to stamp over the donor art for an (era, layout) key; empty if none. |
|
Recipient patches to re-stamp over the donor art for an (era, layout) key; empty if none. |