generator for public transport line images
- Rust 55.8%
- Nix 44.2%
| examples | add examples | |
| src | feat: add width and height args | |
| .envrc | initial commit | |
| .gitignore | initial commit | |
| Cargo.lock | add license and readme, rebrand, make font size configurable | |
| Cargo.toml | add license and readme, rebrand, make font size configurable | |
| flake.lock | package with crane | |
| flake.nix | add examples | |
| LICENSE | add license and readme, rebrand, make font size configurable | |
| README.md | add examples | |
linetastic
Written in Rust built with nix
Generate public transport line vector graphics.
Usage
Generate an image with linetastic generate <text>.
See all available options with linetastic --help.
Usage with resvg:
This tool only outputs Scalable Vector Graphics, if you need PNGs for whatever reason, i would recommend using resvg which is also written in Rust.
This tool works very well by just piping its output into resvg to render an image.
linetastic generate "RB86" | resvg - image.png
Examples
linetastic generate --background-color="#77aed2" --font-size="40" --height="75" --width="125" "RB86"
linetastic generate --background-color="#f28f8e" --font-size="40" --height="75" --width="125" "RB92"
linetastic generate --background-color="#4f9551" --font-size="50" --height="75" --shape="pill" --width="100" "S 1"
linetastic generate --background-color="#f58220" --font-size="50" --height="75" --shape="pill" --width="100" "S 2"
linetastic generate --background-color="#07ada5" --font-size="60" --height="70" --shape="rectangle-rounded-corner" --width="80" "16"
linetastic generate --background-color="#1e93d1" --font-size="60" --height="70" --shape="rectangle-rounded-corner" --width="80" "17"
Security
If you find a security vulnerability, please DO NOT open an issue. Instead contact me via matrix.
License
This repository is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). By contributing to this project, you agree that your contributions will also be subject to this license.