2022-07-27 02:56:05 -04:00
|
|
|
import "cards.asy" as cards;
|
|
|
|
import "numerals.asy" as numerals;
|
2022-07-27 08:53:49 -04:00
|
|
|
import "suits.asy" as suits;
|
2022-07-27 02:56:05 -04:00
|
|
|
|
2022-07-27 08:53:49 -04:00
|
|
|
int suit = PUPPETS;
|
|
|
|
int value = 5;
|
2022-07-27 02:56:05 -04:00
|
|
|
filldraw(card, white, black);
|
|
|
|
|
2022-07-27 08:53:49 -04:00
|
|
|
currentpen = evenodd+suit_colors[suit];
|
|
|
|
|
2022-07-27 02:56:05 -04:00
|
|
|
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
|
2022-07-27 08:53:49 -04:00
|
|
|
fill(recursive_card(value, suit, 6));
|
|
|
|
} else if (suit == CARDS && value > 6) {
|
|
|
|
// conversely, face cards don't need as much recursion depth
|
|
|
|
// because the only icons present are significantly smaller
|
|
|
|
fill(recursive_card(value, suit, 3));
|
2022-07-27 02:56:05 -04:00
|
|
|
} else {
|
2022-07-27 08:53:49 -04:00
|
|
|
//fill(recursive_card(value, CARDS, 1), evenodd+lightgrey);
|
|
|
|
fill(recursive_card(value, suit);
|
2022-07-27 02:56:05 -04:00
|
|
|
}
|