diff --git a/assets/card-texture-3.png b/assets/card-texture-3.png new file mode 100644 index 0000000..4bd9558 Binary files /dev/null and b/assets/card-texture-3.png differ diff --git a/assets/card-texture-4.png b/assets/card-texture-4.png new file mode 100644 index 0000000..0c250c2 Binary files /dev/null and b/assets/card-texture-4.png differ diff --git a/main.py b/main.py index 21d3c00..8ccc270 100755 --- a/main.py +++ b/main.py @@ -43,6 +43,8 @@ def draw_card_face(color, symbol): if (symbol == "W"): img.negate(channel="rgb") draw_card_trim(img) + draw_card_texture_overlay(img) + draw_mask(img) save_img(img, color.asset, symbol) if (symbol == "W"): save_img(img, color.asset, 40) @@ -79,6 +81,12 @@ def draw_card_trim(img): return img +def draw_card_texture_overlay(img): + with Image(filename='assets/card-texture-3.png') as texture: + img.composite(texture) + + return img + def draw_mask(img): # Mask with a pink outline. This pink outline is this replaced # with a transparency layer before being returned