Comments (7)
You could use the -f
(--force-color
) mode in your last pastel
call and pipe to xargs echo
. For example:
pastel distinct 12 | pastel sort | pastel -f format hex | xargs echo
or:
pastel list | pastel sort-by hue | pastel -f format name | xargs echo
from pastel.
Well. These colors all have a hue of zero:
▶ pastel format hsl-hue dimgray gainsboro gray lightgray
0
0
0
0
I agree, they don't look sorted, as the brightness goes up and down. So indeed, it would be useful to have a second (lower priority) sort order for the sort
subcommand. Let's turn this into a feature request 👍
from pastel.
is there a way to sort by hue and luminosity?
from pastel.
Yes. Check out pastel sort-by --help
.
from pastel.
I did but I see nothing there that tell me how to sort by Hue AND Brightness, trying to give both is an error and piping the first in the second doesn't sort on both criteria.
sorting on Hue gives, ie: dimgray, gainsboro, gray, lightgray
from pastel.
what does it mean to sort by "Hue AND Brightness"? Do you mean: Sort "by Hue, THEN by Brightness"? I.e.: For colors where the hue is exactly the same, sort by brightness?
from pastel.
an example explains better, if you look at the colors I listed in that order (given by sort-by hue) above do they look sorted to you?
from pastel.
Related Issues (20)
- Most similar colors option HOT 1
- fzf preview window does not show colors from pastel's output HOT 5
- Colorpicker options HOT 2
- Rotate in La*b* space HOT 1
- `pick` error HOT 4
- How to print ansi reset code (`\e[m`)? HOT 11
- How to create background colors with `pastel format`? HOT 1
- Can this Generate a Sequence of Color Shade strings? HOT 3
- Performance issue with the redundancy operations HOT 1
- [pastel error]: Could not find any external color picker tool HOT 2
- Picking directly from terminal HOT 2
- It would be great to be able to paint gradients in TMUX and Powerline directly with pastel HOT 1
- Feature request: Short name for some commands HOT 1
- The bars doesn't show colors HOT 1
- colorcheck not in commands list ? HOT 3
- `pastel pick` does not work and suggests unhelpful advice. HOT 1
- missing dependencies HOT 2
- Add support for setting alpha values / `transparent` color HOT 1
- how to force colour output with a pager ?
- Invert/negate color?
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 pastel.