https://github.com/nothub/gobonsai
cbonsai go port
https://github.com/nothub/gobonsai
ascii-art tcell
Last synced: 11 months ago
JSON representation
cbonsai go port
- Host: GitHub
- URL: https://github.com/nothub/gobonsai
- Owner: nothub
- License: mit
- Created: 2022-10-22T23:12:41.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-21T18:27:03.000Z (over 1 year ago)
- Last Synced: 2025-03-24T02:21:50.766Z (about 1 year ago)
- Topics: ascii-art, tcell
- Language: Go
- Homepage:
- Size: 76.2 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# gobonsai
A bonsai tree generator ([cbonsai](https://gitlab.com/jallbrit/cbonsai) ported to go)
---
```
Usage:
gobonsai [flags]
Examples:
gobonsai -p --seed 42
gobonsai -l -L 48 -M 3
gobonsai --msg "hi" --msg-y 20
gobonsai -S -c "&,@,ยง,$,%,โ๏ธ,๐ฟ,๐,๐,๐ข,๐ฉ"
Flags:
-l, --live live mode: show each step of growth
-t, --time duration in live mode, delay between steps of growth (default 33ms)
-i, --infinite infinite mode: keep growing trees
-w, --wait duration in infinite mode, delay between each tree (default 4s)
-S, --screensaver screensaver mode: equivalent to -li and quit on any keypress
-b, --base int base pot: big=1 small=2 (default 1)
--base-x int column position of upper-left corner of plant base pot
--base-y int row position of upper-left corner of plant base pot
-a, --align int align tree: center=1 left=2 right=3 (default 1)
-m, --msg string attach message next to the tree
--msg-x int column position of upper-left corner of message text (default 4)
--msg-y int row position of upper-left corner of message text (default 2)
-c, --leaves string list of comma-delimited leaves (default "&")
-M, --multiplier int branch multiplier higher -> more branching (0-20) (default 5)
-L, --life int life higher -> more growth (0-127) (default 32)
-p, --print print first tree to stdout and exit immediately
-s, --seed int seed random number generator (default random)
-h, --help show help
-V, --version show version
```
---
[gobonsai](https://github.com/nothub/gobonsai) is a `go` port of
[cbonsai](https://gitlab.com/jallbrit/cbonsai) (written in `C` and itself a port of
[bonsai.sh](https://gitlab.com/jallbrit/bonsai.sh) (written in `bash` and itself a port of
[bonsai](https://avelican.github.io/bonsai/) (written in `javascript`))).