diff options
author | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-02-18 10:15:06 +0000 |
---|---|---|
committer | untir_l <87096069+untir-l@users.noreply.github.com> | 2022-02-18 10:15:06 +0000 |
commit | c73c5ba7f5fcd78fc68417f500dbfac0f228f52a (patch) | |
tree | b2e0fc5fc7d9ba3ece4e3003b0485086f5950033 /README.md | |
download | hitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.tar hitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.tar.gz hitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.zip |
Initial commit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..2d0b4df --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Hitomezashi + +Library and CLI app to generate hitomezashi patterns like the following: + +*pending addition of image* + +Inspired by [Numberphile's video](https://www.youtube.com/watch?v=JbfhzlMk2eY) on hitomezashi stitch patterns. + +Written in C11 with SDL2. + +## Usage + +`hitomezashi.c` and `hitomezashi.h` are the library portion; running `make` will build `libhitomezashi.a` from these. See `hitomezashi_cli.c` for an example of how to use it (all relevant code is in `main()`; most of the rest of the file is cumbersome argument parsing). + +`hitomezashi_cli.c` and corresponding header file are the CLI app. `make` will build it; run `./hitomezashi_cli -h` for help. + +Output of the CLI app is a BMP image; you can convert it to something nicer like a PNG with ffmpeg or similar. + +Additionally, the output is black and white - you can replace these colours using your tool of choice if desired. + +## Todos/potential future additions +- Add documentation using Doxygen to both the library and CLI app +- Implement nicer argument parsing (I hear there are some nice Rust libraries for this; maybe rewrite the CLI app in that?) +- Add support for output to PNG/other formats to the CLI app +- Add support for choosing foreground and background colours |