https://github.com/Ekenstein/sgf2gif
A program that converts an SGF-file to an animated GIF a la Hayauchi Super Igo style.
https://github.com/Ekenstein/sgf2gif
baduk gif igo kotlin sgf weiqi
Last synced: 4 months ago
JSON representation
A program that converts an SGF-file to an animated GIF a la Hayauchi Super Igo style.
- Host: GitHub
- URL: https://github.com/Ekenstein/sgf2gif
- Owner: Ekenstein
- License: mit
- Created: 2022-06-21T05:09:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T11:27:30.000Z (about 1 year ago)
- Last Synced: 2024-08-02T14:08:34.578Z (7 months ago)
- Topics: baduk, gif, igo, kotlin, sgf, weiqi
- Language: Kotlin
- Homepage:
- Size: 22.4 MB
- Stars: 26
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sgf2gif
A program that converts an SGF-file to an animated GIF.The animated GIF is highly inspired by the classic game Hayauchi Super Igo for NES.
```shell
Usage: sgf2gif options_list
Options:
--file, -f -> The SGF-file to convert to a GIF. If not stated, the SGF will be read from the std-in.
--output, -o -> The destination file to write the GIF to. If not stated, the output will be written to std-out.
--theme [NES] -> The theme to render the board with { Value should be one of [nes, classic] }
--loop, -l [false] -> Whether the animation should be looped or not
--show-marker [false] -> Whether the last move should be marked or not
--width, -w [1000] -> The width of the image. { Int }
--height, -h [1000] -> The height of the image. { Int }
--move-number, -mn [2147483647] -> The move number up to which the animation will run to. { Int }
--delay, -d [2.0] -> The delay between frames in seconds. { Double }
--help -> Usage info
```### NES theme
```shell
java -jar sgf2gif.jar -f ~/game.sgf -o ~/game.gif --theme nes
```
### Classic theme
```shell
java -jar sgf2gif.jar -f ~/game.sgf -o ~/game.gif --theme classic
```
### Writing to std-out
By omitting the --output command, the GIF file will be written to std-out.
```shell
java -jar sgf2gif.jar -f ~/game.sgf > ~/game.gif
```### Reading from std-in
By omitting the --file command, the SGF will be taken from the std-in
```shell
java -jar sgf2gif.jar < ~/game.sgf > ~/game.gif
```### Showing markers
By adding the --show-marker flag, each move made in the animation will have a marker on it
```shell
java -jar sgf2gif.jar --show-marker < ~/game.sgf > ~/game.gif
```
