Skip to content

Commit

Permalink
cli: changed flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
esimov committed Apr 20, 2022
1 parent 8de6176 commit ccd9d6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The following flags are supported:
| `so` | 10 | Sobel filter threshold |
| `sl` | false | Use solid stroke color (yes/no) |
| `wf` | 0 | Wireframe mode (0: without stroke, 1: with stroke, 2: stroke only) |
| `sw` | 1 | Stroke width |
| `st` | 1 | Stroke width |
| `gr` | false | Output in grayscale mode |
| `web` | false | Open the SVG file in the web browser |
| `bg` | ' ' | Background color (specified as hex value) |
Expand Down Expand Up @@ -160,8 +160,8 @@ Setting a lower points threshold, the resulted image will be more like a cubic p

Here are some examples you can experiment with:
```bash
$ triangle -in samples/input.jpg -out output.png -wf=0 -pts=3500 -stroke=2 -blur=2
$ triangle -in samples/input.jpg -out output.png -wf=2 -pts=5500 -stroke=1 -blur=10
$ triangle -in samples/input.jpg -out output.png -wf=0 -pts=3500 -st=2 -bl=2
$ triangle -in samples/input.jpg -out output.png -wf=2 -pts=5500 -st=1 -bl=10
```

## Examples
Expand Down
2 changes: 1 addition & 1 deletion cmd/triangle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func main() {
maxPoints = flag.Int("pts", 2500, "Maximum number of points")
wireframe = flag.Int("wf", 0, "Wireframe mode (0: without stroke, 1: with stroke, 2: stroke only)")
noise = flag.Int("nf", 0, "Noise factor")
strokeWidth = flag.Float64("sw", 1, "Stroke width")
strokeWidth = flag.Float64("st", 1, "Stroke width")
isStrokeSolid = flag.Bool("sl", false, "Use solid stroke color (yes/no)")
grayscale = flag.Bool("gr", false, "Output in grayscale mode")
showInBrowser = flag.Bool("web", false, "Open the SVG file in the web browser")
Expand Down

0 comments on commit ccd9d6c

Please sign in to comment.