Crate tui_cards

Crate tui_cards 

Source
Expand description

A [Ratatui] widget to render charming playing cards in the terminal. Part of the tui-widgets suite by Joshka.

demo

Crate badge Docs Badge Deps Badge License Badge Coverage Badge Discord Badge

GitHub Repository · API Docs · Examples · Changelog · Contributing

§Usage

Create a Card and render it directly in a frame.

use tui_cards::{Card, Rank, Suit};

let card = Card::new(Rank::Ace, Suit::Spades);
frame.render_widget(&card, frame.area());

§Demo

cargo run --example card

§More widgets

For the full suite of widgets, see tui-widgets.

Structs§

Card
A playing card.
RankIter
An iterator over the variants of Rank
SuitIter
An iterator over the variants of Suit

Enums§

Rank
Suit