https://github.com/ppodds/coolgenerator
A very cool command line program to generate cool image.
https://github.com/ppodds/coolgenerator
Last synced: 12 months ago
JSON representation
A very cool command line program to generate cool image.
- Host: GitHub
- URL: https://github.com/ppodds/coolgenerator
- Owner: ppodds
- License: mit
- Created: 2021-09-05T05:10:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T06:13:05.000Z (almost 5 years ago)
- Last Synced: 2025-03-06T00:20:42.242Z (over 1 year ago)
- Language: JavaScript
- Size: 162 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cool Generator

No, it's not cool at all. LOL.
## Introduce
Cool Generator is a very cool command line program to generate cool images.
If you have any cool idea, pull requests are welcome!
## Demo


## Install
```shell
git clone https://github.com/ppodds/CoolGenerator.git
cd CoolGenerator
npm install
```
If you encounter any error, please read following install instruction documents.
[node-canvas](https://github.com/Automattic/node-canvas)
[commander.js](https://github.com/tj/commander.js)
## Usage
```
Usage: node generator.js [options]
Options:
-V, --version output the version number
-t, --type [type] build with according built-in background. available: burst
-i, --input [input text] build with according text.
-o, --output [output path] set image output path (default: "./output/output.png")
-h, --help display help for command
```
## Arguments
- -t, --type
- set background image you want to use
- -i, --input
- set image text
- -o, --output
- set output file path
## Examples
Basic usage
```
node generator.js -t burst -i 酷
```
Set output path
```
node generator.js -t burst -i 酷 -o ./output/StarBurstStream.png
```
## TODO
- [ ] more background image
- [ ] zhang bei tu (長輩圖) support