setalpha 3.0.0 setalpha: ^3.0.0 copied to clipboard
A convenience package for setting and accessing web colors, adjusting the alpha levels of given colors and mixing new colors.
Changelog #
3.0.0 #
- Updated for Dart 3.
- Restructured the project to better accord with dart.dev guidelines.
- Made the properties class
ColorProperties
instantiable and exposed it to the user. - Improved documentation.
2.0.0 #
- Null safe.
1.0.0 #
-
Housecleaning.
-
Extension on strings.
0.9.3 #
-
Small additions and amendments to the
ColorProperties
class. -
Fixed a bug in the interpretation of hsla expressions.
-
The
colorsNearest
function has been split intocolorsNearestRGB
andcolorsNearestHSL
that respectively return the nearest colors in RGB-space and HSL-space. -
Added a convenience class
Crayon
that provides access to the crayon colors in the html color picker.
0.9.2 #
Dart pub issues (?)
0.9.1 #
- Fixed several bugs that were introduced in the previous version.
- Changed
colorNearestRGB
to a more generic and usefulcolorsNearest
, which returns a list of colors in order of increasing distance. (Breaking change.) - Cleaned up the code: a lot more readable now.
0.9.0 #
- Marked as ready for Dart 2.
- Removed methods from abstract class
Color
: free-standing functionssetAlpha
,colorMix
andcolorNearestRGB
are more convenient. (This is a breaking change.) - Output of
setAlpha
now an 8 digit hex value, matching the output ofcolorMix
. - Added an abstract
ColorProperty
class that provides access to various qualities of an input color such as hue, saturation and lightness.
0.8.0 #
Added the function Color.mix
, which allows us to mix a list of colors.
0.7.0 #
Added the function Color.nearest
, which returns the css color nearest in rgb space to input rgb values.
0.6.0 #
Now also supports hsl expressions as input to function setAlpha
.
0.5.0 #
- Set the alpha level of CSS colors.
- Supports color name, hex values, rgb (and rgba) expressions as input to the function
setAlpha
.