https://github.com/billstclair/elm-cards-view
Elm module to view playing cards as Svg
https://github.com/billstclair/elm-cards-view
Last synced: 3 months ago
JSON representation
Elm module to view playing cards as Svg
- Host: GitHub
- URL: https://github.com/billstclair/elm-cards-view
- Owner: billstclair
- License: mit
- Created: 2023-01-28T13:34:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T01:55:14.000Z (over 3 years ago)
- Last Synced: 2026-01-20T10:52:53.096Z (5 months ago)
- Language: HTML
- Size: 1.68 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[billstclair/elm-cards-view](https://package.elm-lang.org/packages/billstclair/elm-cards-view/latest) adds SVG card images to [sudo-rushil/elm-cards](https://package.elm-lang.org/packages/sudo-rushil/elm-cards/latest)
The SVG for the cards came from
[here](https://commons.wikimedia.org/wiki/Category:SVG_English_pattern_playing_cards).
## Required libraries
```
elm install sudo-rushil/elm-cards
elm install billstclair/elm-cards-view
```
## Elm code
```
import Cards
import CardsView
kingOfSpades = Cards.new "spades" 13
CardsView.cardToSvg kingOfSpades 200
```
The [example](https://github.com/billstclair/elm-cards-view/tree/main/example) is live at [say-uncle.ninja/cards.html](https://say-uncle.ninja/cards.html).