flutter_color_models 0.3.3 copy "flutter_color_models: ^0.3.3" to clipboard
flutter_color_models: ^0.3.3 copied to clipboard

outdated

A set of classes representing the CMYK, HSI, HSL, HSP, HSB, LAB, RGB, and XYZ color spaces with methods to convert colors between each space.

0.3.3 October 6, 2020 #

  • Updated all methods on each color model that rely on their parent's equivalent method to call their super method, rather than casting back and forth between types.

0.3.2 October 6, 2020 #

  • Bug fix: The [from] constructors now copy the alpha value from the color they're being constructed from.

0.3.1 October 6, 2020 #

  • Re-implemented the [toColor] method.

0.3.0 October 4, 2020 #

  • Created a new base [ColorModel] class that implements [Color] that each of the models now implement. Before, this packages [ColorModel]s extended the color_models package's [ColorModel] class and implemented [Color] individually. Now, this package's [ColorModel]s can be provided as a [Color] without needing to typecast them first.

0.2.0 September 21, 2020 #

  • All color models now implement Flutter's [Color] class.

  • Normalized all [alpha] values to be on a 0 to 255 scale to be in line with Flutter's [Color] class. They were on a 0 to 1 scale.

  • Renamed [HsvColor] to [HsbColor] to avoid a naming conflict with Flutter's [Color] class's [value] parameter.

  • Renamed [interpolateTo] to [lerpTo].

0.1.6 March 29, 2020 #

  • Added the [interpolateTo] method to each color model.

  • Override the conversion methods on each color model that return their own respective color spaces. Colors were being unnecessarily converted back and forth from RGB.

0.1.5+1 March 27, 2020 #

  • Added the global [toColor] method.

0.1.5 March 24, 2020 #

  • Added the random factory constructor to each [ColorModel].

  • The equality operator and some getters now rounds values to the millionth due to the slight loss of precision during conversions.

  • The [hue] getter now calculates hues directly from RGB, rather than doing a full conversion to HSL.

  • Added the [isMonochromatic] getter to each [ColorModel].

0.1.4+1 March 23, 2020 #

  • Fixed a bug and corrected rounding errors in HSP to RGB conversion.

0.1.4 March 22, 2020 #

  • Added the [relative] parameter to the [warmer] and [cooler] methods.

0.1.3+2 March 22, 2020 #

  • Added the [saturation] getter to [ColorModel].

0.1.3+1 March 22, 2020 #

  • Added the [hue] getter to [ColorModel].

0.1.3 March 21, 2020 #

  • Added the [inverted] and [opposite] getters, as well as the [warmer], [cooler], [rotateHue], and [withHue] methods to each [ColorModel].

0.1.2 March 18, 2020 #

  • Added support for [alpha] values and related methods to each of the [ColorModel]s.

0.1.1+1 March 17, 2020 #

  • Updated the color_models package to version 0.2.2+3.

0.1.1 March 16, 2020 #

  • Updated the color_models package to version 0.2.2+2.

  • Added the [fromHex] static method to each of the [ColorModel]s.

0.1.0+2 January 15, 2019 #

  • Updated the color_models package to version 0.2.1+2.

  • Documentation and formatting changes.

0.1.0 July 23, 2019 #

  • Initial release
33
likes
0
points
26
downloads

Publisher

verified publisherjamesalex.dev

Weekly Downloads

A set of classes representing the CMYK, HSI, HSL, HSP, HSB, LAB, RGB, and XYZ color spaces with methods to convert colors between each space.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

color_models, flutter, meta

More

Packages that depend on flutter_color_models