Class SassColor
- java.lang.Object
-
- de.larsgrefer.sass.embedded.functions.SassColor
-
public final class SassColor extends Object
Java implementation of thesass:colorModule- See Also:
ColorUtil, sass:color
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sass_lang.embedded_protocol.Value.HslColoradjustHue(com.sass_lang.embedded_protocol.Value.HslColor color, double hue)Increases or decreases color‘s hue.static com.sass_lang.embedded_protocol.Value.HwbColoradjustHue(com.sass_lang.embedded_protocol.Value.HwbColor color, double hue)Increases or decreases color‘s hue.static com.sass_lang.embedded_protocol.Value.RgbColoradjustHue(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color, double hue)Increases or decreases color‘s hue.static doublealpha(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)Returns the alpha channel of $color as a number between 0 and 1.static doublealpha(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)Returns the alpha channel of $color as a number between 0 and 1.static doublealpha(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)Returns the alpha channel of $color as a number between 0 and 1.static doubleblackness(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)Returns the HWB blackness of $color as a number between 0% and 100%.static doubleblackness(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)Returns the HWB blackness of $color as a number between 0% and 100%.static doubleblackness(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)Returns the HWB blackness of $color as a number between 0% and 100%.static intblue(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)Returns the blue channel of $color as a number between 0 and 255.static intblue(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)Returns the blue channel of $color as a number between 0 and 255.static intblue(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)Returns the blue channel of $color as a number between 0 and 255.static com.sass_lang.embedded_protocol.Value.HslColorcomplement(com.sass_lang.embedded_protocol.Value.HslColor color)Returns the RGB complement of $color.static com.sass_lang.embedded_protocol.Value.HwbColorcomplement(com.sass_lang.embedded_protocol.Value.HwbColor color)Returns the RGB complement of $color.static com.sass_lang.embedded_protocol.Value.RgbColorcomplement(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)Returns the RGB complement of $color.static com.sass_lang.embedded_protocol.Value.HslColordarken(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color darker.static com.sass_lang.embedded_protocol.Value.HwbColordarken(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color, double amount)Makes $color darker.static com.sass_lang.embedded_protocol.Value.RgbColordarken(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color, double amount)Makes $color darker.static com.sass_lang.embedded_protocol.Value.HslColordesaturate(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color less saturated.static com.sass_lang.embedded_protocol.Value.HwbColordesaturate(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color, double amount)Makes $color less saturated.static com.sass_lang.embedded_protocol.Value.RgbColordesaturate(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color, double amount)Makes $color less saturated.static com.sass_lang.embedded_protocol.Value.HslColorgrayscale(com.sass_lang.embedded_protocol.Value.HslColor color)Returns a gray color with the same lightness as $color.static com.sass_lang.embedded_protocol.Value.HwbColorgrayscale(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)Returns a gray color with the same lightness as $color.static com.sass_lang.embedded_protocol.Value.RgbColorgrayscale(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)Returns a gray color with the same lightness as $color.static intgreen(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)Returns the green channel of $color as a number between 0 and 255.static intgreen(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)Returns the green channel of $color as a number between 0 and 255.static intgreen(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)Returns the green channel of $color as a number between 0 and 255.static doublehue(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)Returns the hue of $color as a number between 0deg and 360deg.static doublehue(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)Returns the hue of $color as a number between 0deg and 360deg.static doublehue(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)Returns the hue of $color as a number between 0deg and 360deg.static com.sass_lang.embedded_protocol.Value.HwbColorhwb(double hue, double whiteness, double blackness)Returns a color with the given hue, whiteness, and blackness and the given alpha channel.static com.sass_lang.embedded_protocol.Value.HwbColorhwb(double hue, double whiteness, double blackness, double alpha)Returns a color with the given hue, whiteness, and blackness and the given alpha channel.static com.sass_lang.embedded_protocol.Value.StringieHexStr(com.sass_lang.embedded_protocol.Value.HslColor color)Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.static com.sass_lang.embedded_protocol.Value.StringieHexStr(com.sass_lang.embedded_protocol.Value.HwbColor color)Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.static com.sass_lang.embedded_protocol.Value.StringieHexStr(com.sass_lang.embedded_protocol.Value.RgbColor rgbColor)Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.static com.sass_lang.embedded_protocol.Value.HslColorinvert(com.sass_lang.embedded_protocol.Value.HslColor color)Returns the inverse or negative of $color.static com.sass_lang.embedded_protocol.Value.HslColorinvert(com.sass_lang.embedded_protocol.Value.HslColor color, double weight)Returns the inverse or negative of $color.static com.sass_lang.embedded_protocol.Value.HwbColorinvert(com.sass_lang.embedded_protocol.Value.HwbColor color)Returns the inverse or negative of $color.static com.sass_lang.embedded_protocol.Value.HwbColorinvert(com.sass_lang.embedded_protocol.Value.HwbColor color, double weight)Returns the inverse or negative of $color.static com.sass_lang.embedded_protocol.Value.RgbColorinvert(com.sass_lang.embedded_protocol.Value.RgbColor color)Returns the inverse or negative of $color.static com.sass_lang.embedded_protocol.Value.RgbColorinvert(com.sass_lang.embedded_protocol.Value.RgbColor color, double weight)Returns the inverse or negative of $color.static com.sass_lang.embedded_protocol.Value.HslColorlighten(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color lighter.static com.sass_lang.embedded_protocol.Value.HwbColorlighten(com.sass_lang.embedded_protocol.Value.HwbColor color, double amount)Makes $color lighter.static com.sass_lang.embedded_protocol.Value.RgbColorlighten(com.sass_lang.embedded_protocol.Value.RgbColor color, double amount)Makes $color lighter.static doublelightness(com.sass_lang.embedded_protocol.Value.HslColor color)Returns the HSL lightness of $color as a number between 0% and 100%.static doublelightness(com.sass_lang.embedded_protocol.Value.HwbColor color)Returns the HSL lightness of $color as a number between 0% and 100%.static doublelightness(com.sass_lang.embedded_protocol.Value.RgbColor color)Returns the HSL lightness of $color as a number between 0% and 100%.static com.sass_lang.embedded_protocol.Value.HslColormix(com.sass_lang.embedded_protocol.Value.HslColor color1, com.sass_lang.embedded_protocol.Value.HslColor color2)Returns a color that’s a mixture of $color1 and $color2.static com.sass_lang.embedded_protocol.Value.HslColormix(com.sass_lang.embedded_protocol.Value.HslColor color1, com.sass_lang.embedded_protocol.Value.HslColor color2, double weight)Returns a color that’s a mixture of $color1 and $color2.static com.sass_lang.embedded_protocol.Value.HwbColormix(com.sass_lang.embedded_protocol.Value.HwbColor color1, com.sass_lang.embedded_protocol.Value.HwbColor color2)Returns a color that’s a mixture of $color1 and $color2.static com.sass_lang.embedded_protocol.Value.HwbColormix(com.sass_lang.embedded_protocol.Value.HwbColor color1, com.sass_lang.embedded_protocol.Value.HwbColor color2, double weight)Returns a color that’s a mixture of $color1 and $color2.static com.sass_lang.embedded_protocol.Value.RgbColormix(com.sass_lang.embedded_protocol.Value.RgbColor color1, com.sass_lang.embedded_protocol.Value.RgbColor color2)Returns a color that’s a mixture of $color1 and $color2.static com.sass_lang.embedded_protocol.Value.RgbColormix(com.sass_lang.embedded_protocol.Value.RgbColor color1, com.sass_lang.embedded_protocol.Value.RgbColor color2, double weight)Returns a color that’s a mixture of $color1 and $color2.static com.sass_lang.embedded_protocol.Value.HslColoropacify(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color more opaque.static com.sass_lang.embedded_protocol.Value.HwbColoropacify(com.sass_lang.embedded_protocol.Value.HwbColor color, double amount)Makes $color more opaque.static com.sass_lang.embedded_protocol.Value.RgbColoropacify(com.sass_lang.embedded_protocol.Value.RgbColor color, double amount)Makes $color more opaque.static intred(com.sass_lang.embedded_protocol.Value.HslColor color)Returns the red channel of $color as a number between 0 and 255.static intred(com.sass_lang.embedded_protocol.Value.HwbColor color)Returns the red channel of $color as a number between 0 and 255.static intred(com.sass_lang.embedded_protocol.Value.RgbColor color)Returns the red channel of $color as a number between 0 and 255.static com.sass_lang.embedded_protocol.Value.HslColorsaturate(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color more saturated.static com.sass_lang.embedded_protocol.Value.HwbColorsaturate(com.sass_lang.embedded_protocol.Value.HwbColor color, double amount)Makes $color more saturated.static com.sass_lang.embedded_protocol.Value.RgbColorsaturate(com.sass_lang.embedded_protocol.Value.RgbColor color, double amount)Makes $color more saturated.static doublesaturation(com.sass_lang.embedded_protocol.Value.HslColor color)Returns the HSL saturation of $color as a number between 0% and 100%.static doublesaturation(com.sass_lang.embedded_protocol.Value.HwbColor color)Returns the HSL saturation of $color as a number between 0% and 100%.static doublesaturation(com.sass_lang.embedded_protocol.Value.RgbColor color)Returns the HSL saturation of $color as a number between 0% and 100%.static com.sass_lang.embedded_protocol.Value.HslColortransparentize(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color more transparent.static com.sass_lang.embedded_protocol.Value.HwbColortransparentize(com.sass_lang.embedded_protocol.Value.HwbColor color, double amount)Makes $color more transparent.static com.sass_lang.embedded_protocol.Value.RgbColortransparentize(com.sass_lang.embedded_protocol.Value.RgbColor color, double amount)Makes $color more transparent.static doublewhiteness(com.sass_lang.embedded_protocol.Value.HslColor color)Returns the HWB whiteness of $color as a number between 0% and 100%.static doublewhiteness(com.sass_lang.embedded_protocol.Value.HwbColor color)Returns the HWB whiteness of $color as a number between 0% and 100%.static doublewhiteness(com.sass_lang.embedded_protocol.Value.RgbColor color)Returns the HWB whiteness of $color as a number between 0% and 100%.
-
-
-
Method Detail
-
adjustHue
public static com.sass_lang.embedded_protocol.Value.RgbColor adjustHue(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color, double hue)Increases or decreases color‘s hue.The hue must be a number between -360deg and 360deg (inclusive) to add to $color’s hue.
- See Also:
- adjust-hue
-
adjustHue
public static com.sass_lang.embedded_protocol.Value.HslColor adjustHue(com.sass_lang.embedded_protocol.Value.HslColor color, double hue)Increases or decreases color‘s hue.The hue must be a number between -360deg and 360deg (inclusive) to add to $color’s hue.
- See Also:
- adjust-hue
-
adjustHue
public static com.sass_lang.embedded_protocol.Value.HwbColor adjustHue(com.sass_lang.embedded_protocol.Value.HwbColor color, double hue)Increases or decreases color‘s hue.The hue must be a number between -360deg and 360deg (inclusive) to add to $color’s hue.
- See Also:
- adjust-hue
-
alpha
public static double alpha(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)
Returns the alpha channel of $color as a number between 0 and 1.- See Also:
- alpha
-
alpha
public static double alpha(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)
Returns the alpha channel of $color as a number between 0 and 1.- See Also:
- alpha
-
alpha
public static double alpha(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)
Returns the alpha channel of $color as a number between 0 and 1.- See Also:
- alpha
-
blackness
public static double blackness(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)
Returns the HWB blackness of $color as a number between 0% and 100%.- See Also:
- blackness
-
blackness
public static double blackness(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)
Returns the HWB blackness of $color as a number between 0% and 100%.- See Also:
- blackness
-
blackness
public static double blackness(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)
Returns the HWB blackness of $color as a number between 0% and 100%.- See Also:
- blackness
-
blue
public static int blue(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)
Returns the blue channel of $color as a number between 0 and 255.- See Also:
- blue
-
blue
public static int blue(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)
Returns the blue channel of $color as a number between 0 and 255.- See Also:
- blue
-
blue
public static int blue(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)
Returns the blue channel of $color as a number between 0 and 255.- See Also:
- blue
-
complement
public static com.sass_lang.embedded_protocol.Value.RgbColor complement(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)
Returns the RGB complement of $color.This is identical to color.adjust($color, $hue: 180deg).
- See Also:
- complement
-
complement
public static com.sass_lang.embedded_protocol.Value.HslColor complement(com.sass_lang.embedded_protocol.Value.HslColor color)
Returns the RGB complement of $color.This is identical to color.adjust($color, $hue: 180deg).
- See Also:
- complement
-
complement
public static com.sass_lang.embedded_protocol.Value.HwbColor complement(com.sass_lang.embedded_protocol.Value.HwbColor color)
Returns the RGB complement of $color.This is identical to color.adjust($color, $hue: 180deg).
- See Also:
- complement
-
darken
public static com.sass_lang.embedded_protocol.Value.RgbColor darken(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color, double amount)Makes $color darker.The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL lightness of $color by that amount.
- See Also:
- darken
-
darken
public static com.sass_lang.embedded_protocol.Value.HslColor darken(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color darker.The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL lightness of $color by that amount.
- See Also:
- darken
-
darken
public static com.sass_lang.embedded_protocol.Value.HwbColor darken(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color, double amount)Makes $color darker.The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL lightness of $color by that amount.
- See Also:
- darken
-
desaturate
public static com.sass_lang.embedded_protocol.Value.RgbColor desaturate(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color, double amount)Makes $color less saturated.The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL saturation of $color by that amount.
- See Also:
- desaturate
-
desaturate
public static com.sass_lang.embedded_protocol.Value.HslColor desaturate(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color less saturated.The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL saturation of $color by that amount.
- See Also:
- desaturate
-
desaturate
public static com.sass_lang.embedded_protocol.Value.HwbColor desaturate(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color, double amount)Makes $color less saturated.The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL saturation of $color by that amount.
- See Also:
- desaturate
-
grayscale
public static com.sass_lang.embedded_protocol.Value.RgbColor grayscale(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)
Returns a gray color with the same lightness as $color.This is identical to color.change($color, $saturation: 0%).
- See Also:
- grayscale
-
grayscale
public static com.sass_lang.embedded_protocol.Value.HslColor grayscale(com.sass_lang.embedded_protocol.Value.HslColor color)
Returns a gray color with the same lightness as $color.This is identical to color.change($color, $saturation: 0%).
- See Also:
- grayscale
-
grayscale
public static com.sass_lang.embedded_protocol.Value.HwbColor grayscale(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)
Returns a gray color with the same lightness as $color.This is identical to color.change($color, $saturation: 0%).
- See Also:
- grayscale
-
green
public static int green(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)
Returns the green channel of $color as a number between 0 and 255.- See Also:
- green
-
green
public static int green(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)
Returns the green channel of $color as a number between 0 and 255.- See Also:
- green
-
green
public static int green(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)
Returns the green channel of $color as a number between 0 and 255.- See Also:
- green
-
hue
public static double hue(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder color)
Returns the hue of $color as a number between 0deg and 360deg.- See Also:
- hue
-
hue
public static double hue(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder color)
Returns the hue of $color as a number between 0deg and 360deg.- See Also:
- hue
-
hue
public static double hue(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder color)
Returns the hue of $color as a number between 0deg and 360deg.- See Also:
- hue
-
hwb
public static com.sass_lang.embedded_protocol.Value.HwbColor hwb(double hue, double whiteness, double blackness)Returns a color with the given hue, whiteness, and blackness and the given alpha channel.- See Also:
- hwb
-
hwb
public static com.sass_lang.embedded_protocol.Value.HwbColor hwb(double hue, double whiteness, double blackness, double alpha)Returns a color with the given hue, whiteness, and blackness and the given alpha channel.- See Also:
- hwb
-
ieHexStr
public static com.sass_lang.embedded_protocol.Value.String ieHexStr(com.sass_lang.embedded_protocol.Value.RgbColor rgbColor)
Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.- See Also:
- ie-hex-str
-
ieHexStr
public static com.sass_lang.embedded_protocol.Value.String ieHexStr(com.sass_lang.embedded_protocol.Value.HslColor color)
Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.- See Also:
- ie-hex-str
-
ieHexStr
public static com.sass_lang.embedded_protocol.Value.String ieHexStr(com.sass_lang.embedded_protocol.Value.HwbColor color)
Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.- See Also:
- ie-hex-str
-
invert
public static com.sass_lang.embedded_protocol.Value.RgbColor invert(com.sass_lang.embedded_protocol.Value.RgbColor color)
Returns the inverse or negative of $color.- See Also:
- invert
-
invert
public static com.sass_lang.embedded_protocol.Value.HslColor invert(com.sass_lang.embedded_protocol.Value.HslColor color)
Returns the inverse or negative of $color.- See Also:
- invert
-
invert
public static com.sass_lang.embedded_protocol.Value.HwbColor invert(com.sass_lang.embedded_protocol.Value.HwbColor color)
Returns the inverse or negative of $color.- See Also:
- invert
-
invert
public static com.sass_lang.embedded_protocol.Value.RgbColor invert(com.sass_lang.embedded_protocol.Value.RgbColor color, double weight)Returns the inverse or negative of $color.The $weight must be a number between 0% and 100% (inclusive). A higher weight means the result will be closer to the negative, and a lower weight means it will be closer to $color. Weight 50% will always produce #808080.
- See Also:
- invert
-
invert
public static com.sass_lang.embedded_protocol.Value.HslColor invert(com.sass_lang.embedded_protocol.Value.HslColor color, double weight)Returns the inverse or negative of $color.The $weight must be a number between 0% and 100% (inclusive). A higher weight means the result will be closer to the negative, and a lower weight means it will be closer to $color. Weight 50% will always produce #808080.
- See Also:
- invert
-
invert
public static com.sass_lang.embedded_protocol.Value.HwbColor invert(com.sass_lang.embedded_protocol.Value.HwbColor color, double weight)Returns the inverse or negative of $color.The $weight must be a number between 0% and 100% (inclusive). A higher weight means the result will be closer to the negative, and a lower weight means it will be closer to $color. Weight 50% will always produce #808080.
- See Also:
- invert
-
lighten
public static com.sass_lang.embedded_protocol.Value.RgbColor lighten(com.sass_lang.embedded_protocol.Value.RgbColor color, double amount)Makes $color lighter.The $amount must be a number between 0% and 100% (inclusive). Increases the HSL lightness of $color by that amount.
- See Also:
- lighten
-
lighten
public static com.sass_lang.embedded_protocol.Value.HslColor lighten(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color lighter.The $amount must be a number between 0% and 100% (inclusive). Increases the HSL lightness of $color by that amount.
- See Also:
- lighten
-
lighten
public static com.sass_lang.embedded_protocol.Value.HwbColor lighten(com.sass_lang.embedded_protocol.Value.HwbColor color, double amount)Makes $color lighter.The $amount must be a number between 0% and 100% (inclusive). Increases the HSL lightness of $color by that amount.
- See Also:
- lighten
-
lightness
public static double lightness(com.sass_lang.embedded_protocol.Value.RgbColor color)
Returns the HSL lightness of $color as a number between 0% and 100%.- See Also:
- lightness
-
lightness
public static double lightness(com.sass_lang.embedded_protocol.Value.HslColor color)
Returns the HSL lightness of $color as a number between 0% and 100%.- See Also:
- lightness
-
lightness
public static double lightness(com.sass_lang.embedded_protocol.Value.HwbColor color)
Returns the HSL lightness of $color as a number between 0% and 100%.- See Also:
- lightness
-
mix
public static com.sass_lang.embedded_protocol.Value.RgbColor mix(com.sass_lang.embedded_protocol.Value.RgbColor color1, com.sass_lang.embedded_protocol.Value.RgbColor color2)Returns a color that’s a mixture of $color1 and $color2.- See Also:
- mix
-
mix
public static com.sass_lang.embedded_protocol.Value.HslColor mix(com.sass_lang.embedded_protocol.Value.HslColor color1, com.sass_lang.embedded_protocol.Value.HslColor color2)Returns a color that’s a mixture of $color1 and $color2.- See Also:
- mix
-
mix
public static com.sass_lang.embedded_protocol.Value.HwbColor mix(com.sass_lang.embedded_protocol.Value.HwbColor color1, com.sass_lang.embedded_protocol.Value.HwbColor color2)Returns a color that’s a mixture of $color1 and $color2.- See Also:
- mix
-
mix
public static com.sass_lang.embedded_protocol.Value.RgbColor mix(com.sass_lang.embedded_protocol.Value.RgbColor color1, com.sass_lang.embedded_protocol.Value.RgbColor color2, double weight)Returns a color that’s a mixture of $color1 and $color2.Both the $weight and the relative opacity of each color determines how much of each color is in the result. The $weight must be a number between 0% and 100% (inclusive). A larger weight indicates that more of $color1 should be used, and a smaller weight indicates that more of $color2 should be used.
- See Also:
- mix
-
mix
public static com.sass_lang.embedded_protocol.Value.HslColor mix(com.sass_lang.embedded_protocol.Value.HslColor color1, com.sass_lang.embedded_protocol.Value.HslColor color2, double weight)Returns a color that’s a mixture of $color1 and $color2.Both the $weight and the relative opacity of each color determines how much of each color is in the result. The $weight must be a number between 0% and 100% (inclusive). A larger weight indicates that more of $color1 should be used, and a smaller weight indicates that more of $color2 should be used.
- See Also:
- mix
-
mix
public static com.sass_lang.embedded_protocol.Value.HwbColor mix(com.sass_lang.embedded_protocol.Value.HwbColor color1, com.sass_lang.embedded_protocol.Value.HwbColor color2, double weight)Returns a color that’s a mixture of $color1 and $color2.Both the $weight and the relative opacity of each color determines how much of each color is in the result. The $weight must be a number between 0% and 100% (inclusive). A larger weight indicates that more of $color1 should be used, and a smaller weight indicates that more of $color2 should be used.
- See Also:
- mix
-
opacify
public static com.sass_lang.embedded_protocol.Value.RgbColor opacify(com.sass_lang.embedded_protocol.Value.RgbColor color, double amount)Makes $color more opaque.The $amount must be a number between 0 and 1 (inclusive). Increases the alpha channel of $color by that amount.
- See Also:
- opacify
-
opacify
public static com.sass_lang.embedded_protocol.Value.HslColor opacify(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color more opaque.The $amount must be a number between 0 and 1 (inclusive). Increases the alpha channel of $color by that amount.
- See Also:
- opacify
-
opacify
public static com.sass_lang.embedded_protocol.Value.HwbColor opacify(com.sass_lang.embedded_protocol.Value.HwbColor color, double amount)Makes $color more opaque.The $amount must be a number between 0 and 1 (inclusive). Increases the alpha channel of $color by that amount.
- See Also:
- opacify
-
red
public static int red(com.sass_lang.embedded_protocol.Value.RgbColor color)
Returns the red channel of $color as a number between 0 and 255.- See Also:
- red
-
red
public static int red(com.sass_lang.embedded_protocol.Value.HslColor color)
Returns the red channel of $color as a number between 0 and 255.- See Also:
- red
-
red
public static int red(com.sass_lang.embedded_protocol.Value.HwbColor color)
Returns the red channel of $color as a number between 0 and 255.- See Also:
- red
-
saturate
public static com.sass_lang.embedded_protocol.Value.RgbColor saturate(com.sass_lang.embedded_protocol.Value.RgbColor color, double amount)Makes $color more saturated.The $amount must be a number between 0% and 100% (inclusive). Increases the HSL saturation of $color by that amount.
- See Also:
- saturate
-
saturate
public static com.sass_lang.embedded_protocol.Value.HslColor saturate(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color more saturated.The $amount must be a number between 0% and 100% (inclusive). Increases the HSL saturation of $color by that amount.
- See Also:
- saturate
-
saturate
public static com.sass_lang.embedded_protocol.Value.HwbColor saturate(com.sass_lang.embedded_protocol.Value.HwbColor color, double amount)Makes $color more saturated.The $amount must be a number between 0% and 100% (inclusive). Increases the HSL saturation of $color by that amount.
- See Also:
- saturate
-
saturation
public static double saturation(com.sass_lang.embedded_protocol.Value.RgbColor color)
Returns the HSL saturation of $color as a number between 0% and 100%.- See Also:
- saturation
-
saturation
public static double saturation(com.sass_lang.embedded_protocol.Value.HslColor color)
Returns the HSL saturation of $color as a number between 0% and 100%.- See Also:
- saturation
-
saturation
public static double saturation(com.sass_lang.embedded_protocol.Value.HwbColor color)
Returns the HSL saturation of $color as a number between 0% and 100%.- See Also:
- saturation
-
transparentize
public static com.sass_lang.embedded_protocol.Value.RgbColor transparentize(com.sass_lang.embedded_protocol.Value.RgbColor color, double amount)Makes $color more transparent.The $amount must be a number between 0 and 1 (inclusive). Decreases the alpha channel of $color by that amount.
- See Also:
- transparentize
-
transparentize
public static com.sass_lang.embedded_protocol.Value.HslColor transparentize(com.sass_lang.embedded_protocol.Value.HslColor color, double amount)Makes $color more transparent.The $amount must be a number between 0 and 1 (inclusive). Decreases the alpha channel of $color by that amount.
- See Also:
- transparentize
-
transparentize
public static com.sass_lang.embedded_protocol.Value.HwbColor transparentize(com.sass_lang.embedded_protocol.Value.HwbColor color, double amount)Makes $color more transparent.The $amount must be a number between 0 and 1 (inclusive). Decreases the alpha channel of $color by that amount.
- See Also:
- transparentize
-
whiteness
public static double whiteness(com.sass_lang.embedded_protocol.Value.RgbColor color)
Returns the HWB whiteness of $color as a number between 0% and 100%.- See Also:
- whiteness
-
whiteness
public static double whiteness(com.sass_lang.embedded_protocol.Value.HslColor color)
Returns the HWB whiteness of $color as a number between 0% and 100%.- See Also:
- whiteness
-
whiteness
public static double whiteness(com.sass_lang.embedded_protocol.Value.HwbColor color)
Returns the HWB whiteness of $color as a number between 0% and 100%.- See Also:
- whiteness
-
-