pastel 命令行颜色生成分析和操作工具
pastel is a command-line tool for generating, analyzing, converting, and manipulating colors. Built in Rust by the creator of bat, fd, and hyperfine, it supports color spaces including RGB, HSL, Lab, and LCH, with features for palette generation, contrast checking, and color blending.
Installation
Use the upstream install or setup path that matches your environment:
- brew install pastel
- make install
- cargo install pastel
- git clone https://github.com/1991513ccie-png/skills
Basic usage or getting-started notes:
- pastel provides a number of commands like saturate, mix or paint. To see a complete list, you can simply run
- Many pastel commands can be composed by piping the output of one command to another, for example:
- Colors can be passed as positional arguments, for example:
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/sharkdp/pastel/HEAD/README.md