From b448cb78eb1a80428bb64014d6e1f6b2c8c599b7 Mon Sep 17 00:00:00 2001 From: xenofem Date: Wed, 27 Jul 2022 02:56:05 -0400 Subject: [PATCH] add asy file to generate single card for testing --- single-card.asy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 single-card.asy diff --git a/single-card.asy b/single-card.asy new file mode 100644 index 0000000..5cef1c6 --- /dev/null +++ b/single-card.asy @@ -0,0 +1,14 @@ +import "cards.asy" as cards; +import "numerals.asy" as numerals; + +int suit = WHEELS; +int value = 1; +filldraw(card, white, black); + +if (suit == CARDS && value == 1) { + // due to exponential growth, with the larger suit icon on the 1 + // card, the endpoint of the recursion is a *lot* more visible + fill(recursive_card(value, suit, 6), evenodd+red); +} else { + fill(recursive_card(value, suit), evenodd+red); +}