#pattern #parser #create #cli #creator #tartan #sett

no-std tartanlib

Tartan pattern parser and creator

3 releases (breaking)

0.4.0 Feb 5, 2022
0.3.0 Jan 23, 2022
0.2.0 Jan 22, 2022

#8 in #creator

23 downloads per month
Used in tartan

MIT OR GPL-3.0-or-later

26KB
922 lines

Tartan

A library and CLI to parse and create tartan pattern

tartan 

USAGE:
    tartan [OPTIONS] [PATTERN]

ARGS:
    <PATTERN>    Thread count or sett [default: W6T36G20T4RB20T4RB20T4G20T36R6]

OPTIONS:
    -h, --height <HEIGHT>        Height of the produced image [default: 400]
        --help                   Print help information
    -o, --filename <FILENAME>    Output name [default: tartan.png]
    -s, --skip <SKIP>            Skip n colour spans in the pattern [default: 0]
    -u, --ugly                   Faster render without noise and blur
    -w, --width <WIDTH>          Width of the produced image [default: 400]

Dependencies

~2.9–4MB
~68K SLoC