Comments (3)
Thanks! Those are nice colors.
You might have to enclose the colors with quotes. I've written other scripts which required single quotes around the arguments for parsing. It might have been the parsing logic I wrote or how structopt/clap handled the arguments.
I used the colors as written and didn't encounter an error:
kmeans_colors.exe find -i baboon-resize.jpg -c 035951,037368,058abf,f25116,a7c8f2 -o github.png
Perhaps try -c '035951,037368,058abf,f25116,a7c8f2'
. I assume this might be a terminal/operating system issue. What OS and term are you using? I'm using cygwin and git-bash on Windows mainly now, but I've used this tool on OS X as well.
from kmeans-colors.
Thanks for getting back to me so quick :)
Enclosing the colors in single quotes did the trick!
For the record, I am using Windows 10 64 Bit and Powershell as a terminal
from kmeans-colors.
Glad to hear that and thanks for the information, I'm not too familiar with Powershell.
I put a note in the readme for this issue in case anyone else runs into it in the future, and I'll include a similar note in future crates I publish with similar arg parsing.
from kmeans-colors.
Related Issues (11)
- Implement the triangle inequality optimization HOT 1
- Add `--transparency` support for find/replace
- Palette swatch output
- Installing from crate.io failed, couldn't compile HOT 9
- Thanks for this project! HOT 3
- Another non issue issue :-) HOT 4
- Trait not implemented while using palette 0.6 HOT 2
- Great implementation questions HOT 3
- Upgrade to palette 0.7 HOT 5
- Possible to implement for image::Rgb? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kmeans-colors.