Open davethegr8 opened 6 years ago
Try the following command:
primitive -i flower.png -o result.svg -rep 1 -m 0 -n 1 -rep 2 -m 1 -n 1 -rep 2 -m 5 -n 1 -rep 2 -m 6 -n 1
that's to say, you MUST specify the arguments in this order: -rep
then -m
and finally -n
:)
Ah, interesting. That does produce the intended effect, though it's not clear to me why...
Thanks!
Apparently it's possible to pass multiple
-m {mode} -n {num}
configs, which is really cool. However, when I was trying it, I noticed that some-rep
settings were not being used (or it wasn't using the right ones).This is the command I'm using:
> GOPATH=/Users/davethegr8/Dropbox/primitives time go run src/github.com/fogleman/primitive/main.go -v -i flower.jpg -o "flower/20171017145645-m0-n1-rep1-m1-n1-rep2-m5-n1-rep2-m6-n1-rep2.svg" -m 0 -n 1 -rep 1 -m 1 -n 1 -rep 2 -m 5 -n 1 -rep 2 -m 6 -n 1 -rep 2
And here's output:
You can see that while I'm passing 4
-rep
values, 5 are printed out, and when theshapeConfig
objects are built, they are off by 1 with the default value getting stuck on the beginning.I tried to see if I could fix the issue, but I'm not familiar enough with go.