Skip to content

Simple package for generating TikZ figures with mahjong hands.

Notifications You must be signed in to change notification settings

riichi/tikz-riichi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

The only command provided is \DrawHand{description}{height}, where height is the target height of the resulting TikZ figure and description is the hand description in following format:

  • Any of the mpsz changes the current tile suite,
  • Any of the 0123456789 (for mps), 1234567 (for z) or ? draws a tile. If a * follows, the tile is drawn rotated. 0 means red five and ? means tile back,
  • ~ makes space of length equal to 0.5 of tile's width.

Putting number before first suite is specified or including any other characters in description results in undefined behavior.

Tile images are created by FluffyStuff, available under https://github.com/FluffyStuff/riichi-mahjong-tiles and licensed under Creative Commons Attribution 4.0 International License.

About

Simple package for generating TikZ figures with mahjong hands.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages