Log inGet started
World

Shuffle and Deal: Card Decks, Hands and Table Kit

Branchmain
Branchesmain
Commit7c83d7128a

README.md

cardsKit.layouts

Three ways to hold a hand, as card positions inside a box: fan (an overlapping arc), row (a straight line that overlaps only when it must) and grid (wrapping rows that show every card in full, good for big hands and phones). Layouts.place(layout, n, width, height, { cardW, maxW }) returns each card's x, y, rotation and size and picks a card width that fits. Used by the CardTable's hand and the CardGallery.