color
A simple Dart package exposing a Color class which can be used to create, convert, alter, and compare colors in a variety of colorspaces.
3.0.0
682K downloads/mo
#432 most downloaded on pub.dev
MichaelFenwick/Color
What this package is like to depend on
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 2 months to 2.4 years
Most releases are documented
notes for 9 of 11 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
11 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
11 releases · Jan 2014 to Mar 2021Releases
latest 11-
3.0.009 Mar 2021 -
2.1.108 Oct 2018Nothing published for this version
-
2.0.203 Jul 2017Nothing published for this version
-
2.0.114 Mar 2017 -
2.0.024 Jun 2015Release notes
Open source →- Color and all subclasses now implement a const constructor.
- Colors are no longer mutable, and all conversion and filter methods return new Color objects.
- Removed the Color.clone() method (this was only generally useful when Colors were mutable).
- Adjusted the greyscale and invert ColorFilters to use the CIELAB color space, giving better results.
- Added a lighten and darken ColorFilter.
- Added an RgbColor.name() constructor to create colors by CSS3 name.
- Added a Color.toHexColor() method for easier conversion to the HexColor class.
- Added a CssColorSpace interface for the color spaces which have representation in the CSS standard (RGB, HEX, and HSL).
-
1.3.003 Apr 2015Release notes
Open source →- Added toXXXColor() conversion methods for all possible color space transitions.
- Added Color.clone() method to make a copy of a Color object.
- Added toCssString() method to RGB, Hex, and HSL colors for easier use with CSS.
- Added ColorFilters to alter colors according to various filtering rules.
- Added a demo page to test the package and see the effect of filters.
-
1.2.021 Jan 2015Release notes
Open source →- Added CIELAB color space support with bidirectional conversions with the XYZ color space (and the RGB color space using XYZ as an intermediary).
-
0.3.127 May 2014Release notes
Open source →- Resolved bug where Color.toHexString() was not prepending each byte with 0s as appropriate.
- Added Color.toRgbString() as an alias for Color.toSting().
-
0.3.030 Jan 2014 -
0.2.027 Jan 2014 -
0.1.026 Jan 2014