#color #css-color #css #compile-time #definition

no-std chromatica

The simplest possible compile-time color definitions

2 stable releases

Uses old Rust 2015

1.0.1 Jan 12, 2019

#668 in Images

MIT license

10KB
145 lines

chromatica

Simple compile-time colors for Rust. Implements the CSS color space as named constants. Doesn't have any run-time information about them. I wanted the most bone-simple setup, so I made it.

Similar crates:

  • tint -- Use this if you want string-to-color conversions.
  • palette -- Use this if you want lots of color space conversions and such.
  • scarlet -- Similar to palette.

No runtime deps