public final class SassColor extends Object
sass:color ModuleColorUtil,
sass:color| Modifier and Type | Method and Description |
|---|---|
static sass.embedded_protocol.EmbeddedSass.Value.HslColor |
adjustHue(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double hue)
Increases or decreases color‘s hue.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
adjustHue(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double hue)
Increases or decreases color‘s hue.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
adjustHue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color,
double hue)
Increases or decreases color‘s hue.
|
static double |
alpha(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
Returns the alpha channel of $color as a number between 0 and 1.
|
static double |
alpha(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
Returns the alpha channel of $color as a number between 0 and 1.
|
static double |
alpha(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
Returns the alpha channel of $color as a number between 0 and 1.
|
static double |
blackness(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
Returns the HWB blackness of $color as a number between 0% and 100%.
|
static double |
blackness(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
Returns the HWB blackness of $color as a number between 0% and 100%.
|
static double |
blackness(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
Returns the HWB blackness of $color as a number between 0% and 100%.
|
static int |
blue(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
Returns the blue channel of $color as a number between 0 and 255.
|
static int |
blue(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
Returns the blue channel of $color as a number between 0 and 255.
|
static int |
blue(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.HslColor |
complement(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
Returns the RGB complement of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
complement(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
Returns the RGB complement of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
complement(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
Returns the RGB complement of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.HslColor |
darken(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
Makes $color darker.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
darken(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color,
double amount)
Makes $color darker.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
darken(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color,
double amount)
Makes $color darker.
|
static sass.embedded_protocol.EmbeddedSass.Value.HslColor |
desaturate(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
Makes $color less saturated.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
desaturate(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color,
double amount)
Makes $color less saturated.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
desaturate(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color,
double amount)
Makes $color less saturated.
|
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.
|
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.
|
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.
|
static int |
green(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
Returns the green channel of $color as a number between 0 and 255.
|
static int |
green(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
Returns the green channel of $color as a number between 0 and 255.
|
static int |
green(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
Returns the green channel of $color as a number between 0 and 255.
|
static double |
hue(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
Returns the hue of $color as a number between 0deg and 360deg.
|
static double |
hue(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
Returns the hue of $color as a number between 0deg and 360deg.
|
static double |
hue(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.HwbColor |
hwb(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.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.
|
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.
|
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.
|
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.
|
static sass.embedded_protocol.EmbeddedSass.Value.HslColor |
invert(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
Returns the inverse or negative of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.HslColor |
invert(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double weight)
Returns the inverse or negative of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
invert(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
Returns the inverse or negative of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
invert(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double weight)
Returns the inverse or negative of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
invert(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color)
Returns the inverse or negative of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
invert(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double weight)
Returns the inverse or negative of $color.
|
static sass.embedded_protocol.EmbeddedSass.Value.HslColor |
lighten(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
Makes $color lighter.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
lighten(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double amount)
Makes $color lighter.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
lighten(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double amount)
Makes $color lighter.
|
static double |
lightness(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
Returns the HSL lightness of $color as a number between 0% and 100%.
|
static double |
lightness(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
Returns the HSL lightness of $color as a number between 0% and 100%.
|
static double |
lightness(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.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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
static sass.embedded_protocol.EmbeddedSass.Value.HslColor |
opacify(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
Makes $color more opaque.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
opacify(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double amount)
Makes $color more opaque.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
opacify(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double amount)
Makes $color more opaque.
|
static int |
red(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
Returns the red channel of $color as a number between 0 and 255.
|
static int |
red(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
Returns the red channel of $color as a number between 0 and 255.
|
static int |
red(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.HslColor |
saturate(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
Makes $color more saturated.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
saturate(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double amount)
Makes $color more saturated.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
saturate(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double amount)
Makes $color more saturated.
|
static double |
saturation(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
Returns the HSL saturation of $color as a number between 0% and 100%.
|
static double |
saturation(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
Returns the HSL saturation of $color as a number between 0% and 100%.
|
static double |
saturation(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.HslColor |
transparentize(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
Makes $color more transparent.
|
static sass.embedded_protocol.EmbeddedSass.Value.HwbColor |
transparentize(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double amount)
Makes $color more transparent.
|
static sass.embedded_protocol.EmbeddedSass.Value.RgbColor |
transparentize(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double amount)
Makes $color more transparent.
|
static double |
whiteness(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
Returns the HWB whiteness of $color as a number between 0% and 100%.
|
static double |
whiteness(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
Returns the HWB whiteness of $color as a number between 0% and 100%.
|
static double |
whiteness(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color)
Returns the HWB whiteness of $color as a number between 0% and 100%.
|
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor adjustHue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color,
double hue)
The hue must be a number between -360deg and 360deg (inclusive) to add to $color’s hue.
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor adjustHue(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double hue)
The hue must be a number between -360deg and 360deg (inclusive) to add to $color’s hue.
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor adjustHue(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double hue)
The hue must be a number between -360deg and 360deg (inclusive) to add to $color’s hue.
public static double alpha(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
public static double alpha(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
public static double alpha(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
public static double blackness(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
public static double blackness(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
public static double blackness(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
public static int blue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
public static int blue(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
public static int blue(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor complement(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
This is identical to color.adjust($color, $hue: 180deg).
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor complement(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
This is identical to color.adjust($color, $hue: 180deg).
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor complement(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
This is identical to color.adjust($color, $hue: 180deg).
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor darken(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL lightness of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor darken(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL lightness of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor darken(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL lightness of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor desaturate(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL saturation of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor desaturate(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL saturation of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor desaturate(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Decreases the HSL saturation of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor grayscale(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
This is identical to color.change($color, $saturation: 0%).
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor grayscale(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
This is identical to color.change($color, $saturation: 0%).
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor grayscale(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
This is identical to color.change($color, $saturation: 0%).
public static int green(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
public static int green(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
public static int green(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
public static double hue(sass.embedded_protocol.EmbeddedSass.Value.RgbColorOrBuilder color)
public static double hue(sass.embedded_protocol.EmbeddedSass.Value.HslColorOrBuilder color)
public static double hue(sass.embedded_protocol.EmbeddedSass.Value.HwbColorOrBuilder color)
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor hwb(double hue,
double whiteness,
double blackness)
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor hwb(double hue,
double whiteness,
double blackness,
double alpha)
public static sass.embedded_protocol.EmbeddedSass.Value.String ieHexStr(sass.embedded_protocol.EmbeddedSass.Value.RgbColor rgbColor)
public static sass.embedded_protocol.EmbeddedSass.Value.String ieHexStr(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
public static sass.embedded_protocol.EmbeddedSass.Value.String ieHexStr(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor invert(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color)
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor invert(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor invert(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor invert(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double weight)
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.
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor invert(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double weight)
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.
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor invert(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double weight)
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.
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor lighten(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Increases the HSL lightness of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor lighten(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Increases the HSL lightness of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor lighten(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Increases the HSL lightness of $color by that amount.
public static double lightness(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color)
public static double lightness(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
public static double lightness(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor mix(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color1,
sass.embedded_protocol.EmbeddedSass.Value.RgbColor color2)
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor mix(sass.embedded_protocol.EmbeddedSass.Value.HslColor color1,
sass.embedded_protocol.EmbeddedSass.Value.HslColor color2)
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor mix(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color1,
sass.embedded_protocol.EmbeddedSass.Value.HwbColor color2)
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)
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.
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)
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.
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)
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.
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor opacify(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double amount)
The $amount must be a number between 0 and 1 (inclusive). Increases the alpha channel of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor opacify(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
The $amount must be a number between 0 and 1 (inclusive). Increases the alpha channel of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor opacify(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double amount)
The $amount must be a number between 0 and 1 (inclusive). Increases the alpha channel of $color by that amount.
public static int red(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color)
public static int red(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
public static int red(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor saturate(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Increases the HSL saturation of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor saturate(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Increases the HSL saturation of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor saturate(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double amount)
The $amount must be a number between 0% and 100% (inclusive). Increases the HSL saturation of $color by that amount.
public static double saturation(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color)
public static double saturation(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
public static double saturation(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)
public static sass.embedded_protocol.EmbeddedSass.Value.RgbColor transparentize(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color,
double amount)
The $amount must be a number between 0 and 1 (inclusive). Decreases the alpha channel of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HslColor transparentize(sass.embedded_protocol.EmbeddedSass.Value.HslColor color,
double amount)
The $amount must be a number between 0 and 1 (inclusive). Decreases the alpha channel of $color by that amount.
public static sass.embedded_protocol.EmbeddedSass.Value.HwbColor transparentize(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color,
double amount)
The $amount must be a number between 0 and 1 (inclusive). Decreases the alpha channel of $color by that amount.
public static double whiteness(sass.embedded_protocol.EmbeddedSass.Value.RgbColor color)
public static double whiteness(sass.embedded_protocol.EmbeddedSass.Value.HslColor color)
public static double whiteness(sass.embedded_protocol.EmbeddedSass.Value.HwbColor color)