Skip to content

Releases: mazznoer/csscolorparser-rs

v0.7.0

05 Aug 14:18
Compare
Choose a tag to compare

Added

  • Color::from_oklcha()
  • Support parsing oklab() and oklch() color format.
  • Color::{from,to}_{laba,lcha}()

Changed

  • f64 -> f32
  • Return type for Color::to_{hsva,hsla,hwba,lab,lch,oklaba,linear_rgba}() changed from tuple to array.
  • Deprecate Color::{from,to}_{lab,lch}(), use Color::{from,to}_{laba,lcha}() instead.
  • NAMED_COLORS is now public

v0.6.2

22 Jul 11:48
Compare
Choose a tag to compare
  • Update dependencies.
  • Some improvements.

v0.6.1

14 Jul 15:03
Compare
Choose a tag to compare
  • New Color's methods: new, to_array, to_rgba8, to_rgba16, clamp, from_rgba8, from_linear_rgba8, name.
  • Deprecate some Color's methods.
  • Remove deprecated Color's methods: from_lrgb, from_lrgba, from_lrgb_u8, from_lrgba_u8, red, green, blue, alpha, to_lrgba, to_lrgba_u8, interpolate_lrgb.
  • More strict parser. rgb(255,100%,50%) is now invalid.
  • Update dependencies.
  • And some improvements.

v0.6.0

14 May 18:49
Compare
Choose a tag to compare
  • Added support for parsing lab and lch color format.

v0.5.0

12 Jun 15:04
Compare
Choose a tag to compare
  • Color: r, g, b, a fields are now public.
  • Color: Deprecate red(), green(), blue() and alpha().
  • Color: Rename some method functions to more descriptive names:
    • from_lrgba() -> from_linear_rgba()
    • interpolate_lrgb() -> interpolate_linear_rgb()
    • and some others.
  • phf are now optional dependency.
  • Rename ParseError -> ParseColorError.
  • Add support for serde, cint, rgb.

v0.4.0

06 Feb 14:18
Compare
Choose a tag to compare
  • Add support for conversion from / to Linear RGB and Oklab color-space.

v0.3.0

10 Jan 12:55
Compare
Choose a tag to compare
update doc for v0.3.0