setalpha library
Classes
- Color
- Convenience class for accessing CSS colors.
- ColorProperties
- A convenience class for determining properties of colors.
- Crayon
- Convenience class for accessing color picker colors.
Functions
-
colorMix(
List< String> colors, List<num> weights, {bool nearestCssColor = false}) → String - Returns the color that represents the weighted mean of a list of colors.
-
colorsNearestHSL(
String color, [int n = 3]) → List< String> -
The
n
css colors that are nearest in hsl space tocolor
. -
colorsNearestRGB(
String color, [int n = 3]) → List< String> -
The
n
css colors that are nearest in rgb space tocolor
. -
setAlpha(
String color, [num? alpha]) → String -
Returns a color with a set
alpha
level.