Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dnovikoff/mimage
Mahjong image library
https://github.com/dnovikoff/mimage
Last synced: about 2 months ago
JSON representation
Mahjong image library
- Host: GitHub
- URL: https://github.com/dnovikoff/mimage
- Owner: dnovikoff
- License: mit
- Created: 2019-04-28T10:40:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-02T20:38:21.000Z (about 4 years ago)
- Last Synced: 2024-06-19T11:37:43.107Z (7 months ago)
- Language: Go
- Size: 493 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mimage
[![CI](https://github.com/dnovikoff/mimage/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/dnovikoff/mimage/actions?query=workflow%3ACI)
[![Coverage Status](https://img.shields.io/codecov/c/github/dnovikoff/mimage.svg)](https://codecov.io/gh/dnovikoff/mimage)
[![Go Report Card](https://goreportcard.com/badge/github.com/dnovikoff/mimage)](https://goreportcard.com/report/github.com/dnovikoff/mimage)This is a library for creating images with mahjong tiles.
There is a server to show fuctionalty.Run the server from docker
`docker run -p 8080:8080 -it --rm tempai/mimage`
Or start with go
`go run ./cmd/mimage`
## Example urls
- Simple string http://localhost:8080/1379m2568p23456s_6z.png
- Rotated tiles http://localhost:8080/123445679m_-123s_4-444s.png
- Kan http://localhost:8080/I50Im_5-5-05s.png## Examples of resulting images
- ![Simple](https://raw.githubusercontent.com/dnovikoff/mimage/master/pkg/image/test_data/1379m2568p23456s_6z.png)
- ![Rotated](https://raw.githubusercontent.com/dnovikoff/mimage/master/pkg/image/test_data/123445679m_-123s_4-444s.png)
- ![Kan](https://raw.githubusercontent.com/dnovikoff/mimage/master/pkg/image/test_data/I50Im_5-5-05s.png)