Class ColorUtil

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.sass_lang.embedded_protocol.Value.RgbColor black  
      static com.sass_lang.embedded_protocol.Value.RgbColor white  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.sass_lang.embedded_protocol.Value.RgbColor rgb​(int rgb)  
      static com.sass_lang.embedded_protocol.Value.RgbColor rgba​(int rgb, double alpha)  
      static com.sass_lang.embedded_protocol.Value.RgbColor rgba​(int red, int green, int blue, double alpha)  
      static com.sass_lang.embedded_protocol.Value.HslColor toHslColor​(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder hwbColor)  
      static com.sass_lang.embedded_protocol.Value.HslColor toHslColor​(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder rgbColor)  
      static com.sass_lang.embedded_protocol.Value.HwbColor toHwbColor​(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder hslColor)  
      static com.sass_lang.embedded_protocol.Value.HwbColor toHwbColor​(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder rgbColor)  
      static com.sass_lang.embedded_protocol.Value.RgbColor toRgbColor​(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder hslColor)  
      static com.sass_lang.embedded_protocol.Value.RgbColor toRgbColor​(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder hwbColor)  
    • Field Detail

      • white

        public static final com.sass_lang.embedded_protocol.Value.RgbColor white
      • black

        public static final com.sass_lang.embedded_protocol.Value.RgbColor black
    • Method Detail

      • toRgbColor

        public static com.sass_lang.embedded_protocol.Value.RgbColor toRgbColor​(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder hwbColor)
      • toRgbColor

        public static com.sass_lang.embedded_protocol.Value.RgbColor toRgbColor​(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder hslColor)
      • toHslColor

        public static com.sass_lang.embedded_protocol.Value.HslColor toHslColor​(com.sass_lang.embedded_protocol.Value.HwbColorOrBuilder hwbColor)
      • toHslColor

        public static com.sass_lang.embedded_protocol.Value.HslColor toHslColor​(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder rgbColor)
      • toHwbColor

        public static com.sass_lang.embedded_protocol.Value.HwbColor toHwbColor​(com.sass_lang.embedded_protocol.Value.HslColorOrBuilder hslColor)
      • toHwbColor

        public static com.sass_lang.embedded_protocol.Value.HwbColor toHwbColor​(com.sass_lang.embedded_protocol.Value.RgbColorOrBuilder rgbColor)
      • rgb

        public static com.sass_lang.embedded_protocol.Value.RgbColor rgb​(int rgb)
      • rgba

        public static com.sass_lang.embedded_protocol.Value.RgbColor rgba​(int rgb,
                                                                          double alpha)
      • rgba

        public static com.sass_lang.embedded_protocol.Value.RgbColor rgba​(int red,
                                                                          int green,
                                                                          int blue,
                                                                          double alpha)