Class SassColor
sass:color Module- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic sass.embedded_protocol.EmbeddedSass.Value.HslColoradjustHue(sass.embedded_protocol.EmbeddedSass.Value.HslColor color, double hue) Increases or decreases color‘s hue.static sass.embedded_protocol.EmbeddedSass.Value.HwbColoradjustHue(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color, double hue) Increases or decreases color‘s hue.static sass.embedded_protocol.EmbeddedSass.Value.RgbColoradjustHue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color, double hue) Increases or decreases color‘s hue.static doublealpha(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the alpha channel of $color as a number between 0 and 1.static doublealpha(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the alpha channel of $color as a number between 0 and 1.static doublealpha(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the alpha channel of $color as a number between 0 and 1.static doubleblackness(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the HWB blackness of $color as a number between 0% and 100%.static doubleblackness(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the HWB blackness of $color as a number between 0% and 100%.static doubleblackness(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the HWB blackness of $color as a number between 0% and 100%.static intblue(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the blue channel of $color as a number between 0 and 255.static intblue(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the blue channel of $color as a number between 0 and 255.static intblue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the blue channel of $color as a number between 0 and 255.static sass.embedded_protocol.EmbeddedSass.Value.HslColorcomplement(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the RGB complement of $color.static sass.embedded_protocol.EmbeddedSass.Value.HwbColorcomplement(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the RGB complement of $color.static sass.embedded_protocol.EmbeddedSass.Value.RgbColorcomplement(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the RGB complement of $color.static sass.embedded_protocol.EmbeddedSass.Value.HslColordarken(sass.embedded_protocol.EmbeddedSass.Value.HslColor color, double amount) Makes $color darker.static sass.embedded_protocol.EmbeddedSass.Value.HwbColordarken(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color, double amount) Makes $color darker.static sass.embedded_protocol.EmbeddedSass.Value.RgbColordarken(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color, double amount) Makes $color darker.static sass.embedded_protocol.EmbeddedSass.Value.HslColordesaturate(sass.embedded_protocol.EmbeddedSass.Value.HslColor color, double amount) Makes $color less saturated.static sass.embedded_protocol.EmbeddedSass.Value.HwbColordesaturate(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color, double amount) Makes $color less saturated.static sass.embedded_protocol.EmbeddedSass.Value.RgbColordesaturate(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color, double amount) Makes $color less saturated.static sass.embedded_protocol.EmbeddedSass.Value.HslColorgrayscale(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns a gray color with the same lightness as $color.static sass.embedded_protocol.EmbeddedSass.Value.HwbColorgrayscale(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns a gray color with the same lightness as $color.static sass.embedded_protocol.EmbeddedSass.Value.RgbColorgrayscale(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns a gray color with the same lightness as $color.static intgreen(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the green channel of $color as a number between 0 and 255.static intgreen(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the green channel of $color as a number between 0 and 255.static intgreen(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the green channel of $color as a number between 0 and 255.static doublehue(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the hue of $color as a number between 0deg and 360deg.static doublehue(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the hue of $color as a number between 0deg and 360deg.static doublehue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the hue of $color as a number between 0deg and 360deg.static sass.embedded_protocol.EmbeddedSass.Value.HwbColorhwb(double hue, double whiteness, double blackness) Returns a color with the given hue, whiteness, and blackness and the given alpha channel.static sass.embedded_protocol.EmbeddedSass.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 sass.embedded_protocol.EmbeddedSass.Value.StringieHexStr(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.static sass.embedded_protocol.EmbeddedSass.Value.StringieHexStr(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.static sass.embedded_protocol.EmbeddedSass.Value.StringieHexStr(sass.embedded_protocol.EmbeddedSass.Value.RgbColor rgbColor) Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.static sass.embedded_protocol.EmbeddedSass.Value.HslColorinvert(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the inverse or negative of $color.static sass.embedded_protocol.EmbeddedSass.Value.HslColorinvert(sass.embedded_protocol.EmbeddedSass.Value.HslColor color, double weight) Returns the inverse or negative of $color.static sass.embedded_protocol.EmbeddedSass.Value.HwbColorinvert(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the inverse or negative of $color.static sass.embedded_protocol.EmbeddedSass.Value.HwbColorinvert(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color, double weight) Returns the inverse or negative of $color.static sass.embedded_protocol.EmbeddedSass.Value.RgbColorinvert(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the inverse or negative of $color.static sass.embedded_protocol.EmbeddedSass.Value.RgbColorinvert(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color, double weight) Returns the inverse or negative of $color.static sass.embedded_protocol.EmbeddedSass.Value.HslColorlighten(sass.embedded_protocol.EmbeddedSass.Value.HslColor color, double amount) Makes $color lighter.static sass.embedded_protocol.EmbeddedSass.Value.HwbColorlighten(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color, double amount) Makes $color lighter.static sass.embedded_protocol.EmbeddedSass.Value.RgbColorlighten(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color, double amount) Makes $color lighter.static doublelightness(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the HSL lightness of $color as a number between 0% and 100%.static doublelightness(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the HSL lightness of $color as a number between 0% and 100%.static doublelightness(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the HSL lightness of $color as a number between 0% and 100%.static sass.embedded_protocol.EmbeddedSass.Value.HslColormix(sass.embedded_protocol.EmbeddedSass.Value.HslColor color1, sass.embedded_protocol.EmbeddedSass.Value.HslColor color2) Returns a color that’s a mixture of $color1 and $color2.static sass.embedded_protocol.EmbeddedSass.Value.HslColormix(sass.embedded_protocol.EmbeddedSass.Value.HslColor color1, sass.embedded_protocol.EmbeddedSass.Value.HslColor color2, double weight) Returns a color that’s a mixture of $color1 and $color2.static sass.embedded_protocol.EmbeddedSass.Value.HwbColormix(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color1, sass.embedded_protocol.EmbeddedSass.Value.HwbColor color2) Returns a color that’s a mixture of $color1 and $color2.static sass.embedded_protocol.EmbeddedSass.Value.HwbColormix(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color1, sass.embedded_protocol.EmbeddedSass.Value.HwbColor color2, double weight) Returns a color that’s a mixture of $color1 and $color2.static sass.embedded_protocol.EmbeddedSass.Value.RgbColormix(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color1, sass.embedded_protocol.EmbeddedSass.Value.RgbColor color2) Returns a color that’s a mixture of $color1 and $color2.static sass.embedded_protocol.EmbeddedSass.Value.RgbColormix(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color1, sass.embedded_protocol.EmbeddedSass.Value.RgbColor color2, double weight) Returns a color that’s a mixture of $color1 and $color2.static sass.embedded_protocol.EmbeddedSass.Value.HslColoropacify(sass.embedded_protocol.EmbeddedSass.Value.HslColor color, double amount) Makes $color more opaque.static sass.embedded_protocol.EmbeddedSass.Value.HwbColoropacify(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color, double amount) Makes $color more opaque.static sass.embedded_protocol.EmbeddedSass.Value.RgbColoropacify(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color, double amount) Makes $color more opaque.static intred(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the red channel of $color as a number between 0 and 255.static intred(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the red channel of $color as a number between 0 and 255.static intred(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the red channel of $color as a number between 0 and 255.static sass.embedded_protocol.EmbeddedSass.Value.HslColorsaturate(sass.embedded_protocol.EmbeddedSass.Value.HslColor color, double amount) Makes $color more saturated.static sass.embedded_protocol.EmbeddedSass.Value.HwbColorsaturate(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color, double amount) Makes $color more saturated.static sass.embedded_protocol.EmbeddedSass.Value.RgbColorsaturate(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color, double amount) Makes $color more saturated.static doublesaturation(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the HSL saturation of $color as a number between 0% and 100%.static doublesaturation(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the HSL saturation of $color as a number between 0% and 100%.static doublesaturation(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the HSL saturation of $color as a number between 0% and 100%.static sass.embedded_protocol.EmbeddedSass.Value.HslColortransparentize(sass.embedded_protocol.EmbeddedSass.Value.HslColor color, double amount) Makes $color more transparent.static sass.embedded_protocol.EmbeddedSass.Value.HwbColortransparentize(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color, double amount) Makes $color more transparent.static sass.embedded_protocol.EmbeddedSass.Value.RgbColortransparentize(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color, double amount) Makes $color more transparent.static doublewhiteness(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the HWB whiteness of $color as a number between 0% and 100%.static doublewhiteness(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the HWB whiteness of $color as a number between 0% and 100%.static doublewhiteness(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the HWB whiteness of $color as a number between 0% and 100%.
-
Method Details
-
adjustHue
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor adjustHue(sass.embedded_protocol.EmbeddedSass.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:
-
adjustHue
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor adjustHue(sass.embedded_protocol.EmbeddedSass.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:
-
adjustHue
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor adjustHue(sass.embedded_protocol.EmbeddedSass.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:
-
alpha
public static double alpha(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the alpha channel of $color as a number between 0 and 1.- See Also:
-
alpha
public static double alpha(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the alpha channel of $color as a number between 0 and 1.- See Also:
-
alpha
public static double alpha(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the alpha channel of $color as a number between 0 and 1.- See Also:
-
blackness
public static double blackness(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the HWB blackness of $color as a number between 0% and 100%.- See Also:
-
blackness
public static double blackness(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the HWB blackness of $color as a number between 0% and 100%.- See Also:
-
blackness
public static double blackness(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the HWB blackness of $color as a number between 0% and 100%.- See Also:
-
blue
public static int blue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the blue channel of $color as a number between 0 and 255.- See Also:
-
blue
public static int blue(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the blue channel of $color as a number between 0 and 255.- See Also:
-
blue
public static int blue(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the blue channel of $color as a number between 0 and 255.- See Also:
-
complement
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor complement(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the RGB complement of $color.This is identical to color.adjust($color, $hue: 180deg).
- See Also:
-
complement
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor complement(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the RGB complement of $color.This is identical to color.adjust($color, $hue: 180deg).
- See Also:
-
complement
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor complement(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the RGB complement of $color.This is identical to color.adjust($color, $hue: 180deg).
- See Also:
-
darken
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor darken(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor darken(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor darken(sass.embedded_protocol.EmbeddedSass.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:
-
desaturate
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor desaturate(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor desaturate(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor desaturate(sass.embedded_protocol.EmbeddedSass.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:
-
grayscale
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor grayscale(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor grayscale(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor grayscale(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns a gray color with the same lightness as $color.This is identical to color.change($color, $saturation: 0%).
- See Also:
-
green
public static int green(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the green channel of $color as a number between 0 and 255.- See Also:
-
green
public static int green(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the green channel of $color as a number between 0 and 255.- See Also:
-
green
public static int green(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the green channel of $color as a number between 0 and 255.- See Also:
-
hue
public static double hue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color) Returns the hue of $color as a number between 0deg and 360deg.- See Also:
-
hue
public static double hue(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color) Returns the hue of $color as a number between 0deg and 360deg.- See Also:
-
hue
public static double hue(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color) Returns the hue of $color as a number between 0deg and 360deg.- See Also:
-
hwb
public static sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.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:
-
ieHexStr
public static sass.embedded_protocol.EmbeddedSass.Value.String ieHexStr(sass.embedded_protocol.EmbeddedSass.Value.RgbColor rgbColor) Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.- See Also:
-
ieHexStr
public static sass.embedded_protocol.EmbeddedSass.Value.String ieHexStr(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.- See Also:
-
ieHexStr
public static sass.embedded_protocol.EmbeddedSass.Value.String ieHexStr(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns an unquoted string that represents $color in the #AARRGGBB format expected by Internet Explorer’s -ms-filter property.- See Also:
-
invert
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor invert(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the inverse or negative of $color.- See Also:
-
invert
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor invert(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the inverse or negative of $color.- See Also:
-
invert
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor invert(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the inverse or negative of $color.- See Also:
-
invert
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor invert(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor invert(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor invert(sass.embedded_protocol.EmbeddedSass.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:
-
lighten
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor lighten(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor lighten(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor lighten(sass.embedded_protocol.EmbeddedSass.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:
-
lightness
public static double lightness(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the HSL lightness of $color as a number between 0% and 100%.- See Also:
-
lightness
public static double lightness(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the HSL lightness of $color as a number between 0% and 100%.- See Also:
-
lightness
public static double lightness(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the HSL lightness of $color as a number between 0% and 100%.- See Also:
-
mix
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor mix(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color1, sass.embedded_protocol.EmbeddedSass.Value.RgbColor color2) Returns a color that’s a mixture of $color1 and $color2.- See Also:
-
mix
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor mix(sass.embedded_protocol.EmbeddedSass.Value.HslColor color1, sass.embedded_protocol.EmbeddedSass.Value.HslColor color2) Returns a color that’s a mixture of $color1 and $color2.- See Also:
-
mix
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor mix(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color1, sass.embedded_protocol.EmbeddedSass.Value.HwbColor color2) Returns a color that’s a mixture of $color1 and $color2.- See Also:
-
mix
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor mix(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color1, sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor mix(sass.embedded_protocol.EmbeddedSass.Value.HslColor color1, sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor mix(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color1, sass.embedded_protocol.EmbeddedSass.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:
-
opacify
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor opacify(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor opacify(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor opacify(sass.embedded_protocol.EmbeddedSass.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:
-
red
public static int red(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the red channel of $color as a number between 0 and 255.- See Also:
-
red
public static int red(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the red channel of $color as a number between 0 and 255.- See Also:
-
red
public static int red(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the red channel of $color as a number between 0 and 255.- See Also:
-
saturate
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor saturate(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor saturate(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor saturate(sass.embedded_protocol.EmbeddedSass.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:
-
saturation
public static double saturation(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the HSL saturation of $color as a number between 0% and 100%.- See Also:
-
saturation
public static double saturation(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the HSL saturation of $color as a number between 0% and 100%.- See Also:
-
saturation
public static double saturation(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the HSL saturation of $color as a number between 0% and 100%.- See Also:
-
transparentize
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor transparentize(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor transparentize(sass.embedded_protocol.EmbeddedSass.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
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor transparentize(sass.embedded_protocol.EmbeddedSass.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:
-
whiteness
public static double whiteness(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color) Returns the HWB whiteness of $color as a number between 0% and 100%.- See Also:
-
whiteness
public static double whiteness(sass.embedded_protocol.EmbeddedSass.Value.HslColor color) Returns the HWB whiteness of $color as a number between 0% and 100%.- See Also:
-
whiteness
public static double whiteness(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color) Returns the HWB whiteness of $color as a number between 0% and 100%.- See Also:
-