Skip to content

Releases: mazznoer/colorgrad-rs

v0.7.0

06 Aug 03:03
Compare
Choose a tag to compare

Added

  • BlendMode::Lab, optional feature, can be enabled using features = ["lab"] in Cargo.toml
  • GradientBuilder new method css() for parsing css gradient format

Changed

  • f64 -> f32.
  • GimpGradient is now a optional feature, can be enabled using features = ["ggr"] in Cargo.toml
  • Preset gradients move to submodule preset.
  • In previous version Gradient is a struct holding LinearGradient, BasisGradient, etc in a Box.
    Now Gradient is a trait. LinearGradient, BasisGradient, etc is now exposed directy,
    and they are implementing Gradient trait.
  • CustomGradient renamed to GradientBuilder
  • CustomGradientError renamed to GradientBuilderError

Removed

  • BlendMode::Hsv

Fixed

  • Error parsing GIMP gradient with UTF-8 BOM.

v0.6.2

14 Oct 11:06
Compare
Choose a tag to compare
  • Performance improvement

v0.6.1

22 Jul 12:41
Compare
Choose a tag to compare
  • Re-organize codes.
  • Performance improvement for LinearGradient.
  • Added benchmarks.
  • Update dependencies.

v0.6.0

07 Jun 14:33
Compare
Choose a tag to compare
Update doc.

v0.5.0

03 Sep 14:33
Compare
Choose a tag to compare
  • New parse_ggr() for parsing GIMP gradient (ggr) format.
  • Bug fixes.

v0.4.0

29 Mar 14:10
Compare
Choose a tag to compare
  • CustomGradient: new method interpolation()
  • Gradient: new methods repeat_at() and reflect_at()
  • Some bug fixes.

v0.3.0

10 Feb 17:59
Compare
Choose a tag to compare
  • Rename BlendMode::Lrgb -> BlendMode::LinearRgb
  • Add BlendMode::Oklab
  • Support for smoothness in hard-edged gradient.
  • Rename lots of preset gradients to snake case:
    • brbg -> br_bg
    • piyg -> pi_yg
    • and others.
  • Using uniform B-splines to interpolate preset gradients.
  • Some bug fixes.

v0.2.0

11 Jan 16:52
Compare
Choose a tag to compare
bump version number