https://github.com/linebender/color
Color in Rust.
https://github.com/linebender/color
Last synced: about 1 year ago
JSON representation
Color in Rust.
- Host: GitHub
- URL: https://github.com/linebender/color
- Owner: linebender
- License: apache-2.0
- Created: 2024-11-04T16:27:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T15:43:48.000Z (about 1 year ago)
- Last Synced: 2025-04-13T00:48:54.339Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 293 KB
- Stars: 77
- Watchers: 12
- Forks: 7
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
- Authors: AUTHORS
Awesome Lists containing this project
README
# Color
A library for representing and manipulating colors
[](https://xi.zulipchat.com/#narrow/channel/466849-color)
[](https://deps.rs/repo/github/linebender/color)
[](#license)
[](https://github.com/linebender/color/actions)
[](https://crates.io/crates/color)
[](https://docs.rs/color)
The Color library provides functionality for representing, converting, parsing, serializing, and manipulating colors in a variety of color spaces.
It closely follows the [CSS Color Level 4] draft spec.
## Minimum supported Rust Version (MSRV)
This version of Color has been verified to compile with **Rust 1.82** and later.
Future versions of Color might increase the Rust version requirement.
It will not be treated as a breaking change and as such can even happen with small patch releases.
Click here if compiling fails.
As time has passed, some of Color's dependencies could have released versions with a higher Rust requirement.
If you encounter a compilation issue due to a dependency and don't want to upgrade your Rust toolchain, then you could downgrade the dependency.
```sh
# Use the problematic dependency's name and version
cargo update -p package_name --precise 0.1.1
```
## Community
[](https://xi.zulipchat.com/#narrow/channel/466849-color)
Discussion of Color development happens in the [Linebender Zulip](https://xi.zulipchat.com/), specifically the [#color channel](https://xi.zulipchat.com/#narrow/channel/466849-color).
All public content can be read without logging in.
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or )
- MIT license ([LICENSE-MIT](LICENSE-MIT) or )
at your option.
## Contribution
Contributions are welcome by pull request. The [Rust code of conduct] applies.
Please feel free to add your name to the [AUTHORS] file in any substantive pull request.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
[Rust Code of Conduct]: https://www.rust-lang.org/policies/code-of-conduct
[AUTHORS]: ./AUTHORS
[CSS Color Level 4]: https://www.w3.org/TR/css-color-4/