# Changelog

## [Unreleased](https://github.com/mazznoer/colorgrad-rs/compare/v0.8.0...HEAD)

## [0.8.0](https://github.com/mazznoer/colorgrad-rs/compare/v0.7.2...v0.8.0)

## Added

- Support for `no_std`.

## Changed

- Removed `preset` and `named-colors` from default features.

## [0.7.2](https://github.com/mazznoer/colorgrad-rs/compare/v0.7.1...v0.7.2)

### Added

- `Gradient::colors_iter()`
- `GradientColors`

## [0.7.1](https://github.com/mazznoer/colorgrad-rs/compare/v0.7.0...v0.7.1)

### Added

- New methods for `Gradient`: `inverse()` and `boxed()`.
- impl `Gradient` for `Box<dyn Gradient>`.
- impl `Clone` for `Box<dyn Gradient>`.
- `GradientBuilder` new method `reset()`.
- `InverseGradient`.

### Fixed

- `CubehelixGradient`

## [0.7.0](https://github.com/mazznoer/colorgrad-rs/compare/v0.6.2...v0.7.0)

### 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.

