1
0
Fork
You've already forked linetastic
0
generator for public transport line images
  • Rust 55.8%
  • Nix 44.2%
2023年09月18日 23:32:38 +02:00
examples add examples 2023年09月18日 23:32:38 +02:00
src feat: add width and height args 2023年09月18日 15:05:51 +02:00
.envrc initial commit 2023年09月14日 13:19:07 +02:00
.gitignore initial commit 2023年09月14日 13:19:07 +02:00
Cargo.lock add license and readme, rebrand, make font size configurable 2023年09月14日 19:57:51 +02:00
Cargo.toml add license and readme, rebrand, make font size configurable 2023年09月14日 19:57:51 +02:00
flake.lock package with crane 2023年09月14日 19:10:29 +02:00
flake.nix add examples 2023年09月18日 23:32:38 +02:00
LICENSE add license and readme, rebrand, make font size configurable 2023年09月14日 19:57:51 +02:00
README.md add examples 2023年09月18日 23:32:38 +02:00

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

Example 1

linetastic generate --background-color="#77aed2" --font-size="40" --height="75" --width="125" "RB86"

Example 2

linetastic generate --background-color="#f28f8e" --font-size="40" --height="75" --width="125" "RB92"

Example 3

linetastic generate --background-color="#4f9551" --font-size="50" --height="75" --shape="pill" --width="100" "S 1"

Example 4

linetastic generate --background-color="#f58220" --font-size="50" --height="75" --shape="pill" --width="100" "S 2"

Example 5

linetastic generate --background-color="#07ada5" --font-size="60" --height="70" --shape="rectangle-rounded-corner" --width="80" "16"

Example 6

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.