Class ColorUtil

    • Field Summary

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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.sass_lang.embedded_protocol.Value.Color rgb​(int rgb)  
      static com.sass_lang.embedded_protocol.Value.Color rgba​(int rgb, double alpha)  
      static com.sass_lang.embedded_protocol.Value.Color rgba​(int red, int green, int blue, double alpha)  
      static com.sass_lang.embedded_protocol.Value.Color toHslColor​(com.sass_lang.embedded_protocol.Value.Color color)  
      static com.sass_lang.embedded_protocol.Value.Color toHwbColor​(com.sass_lang.embedded_protocol.Value.Color color)  
      static com.sass_lang.embedded_protocol.Value.Color toRgbColor​(com.sass_lang.embedded_protocol.Value.Color color)  
      static com.sass_lang.embedded_protocol.Value.Color toRgbColorFromHsl​(com.sass_lang.embedded_protocol.Value.ColorOrBuilder hslColor)  
      static com.sass_lang.embedded_protocol.Value.Color toRgbColorFromHwb​(com.sass_lang.embedded_protocol.Value.ColorOrBuilder hwbColor)  
    • Field Detail

      • white

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

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

      • toRgbColor

        public static com.sass_lang.embedded_protocol.Value.Color toRgbColor​(com.sass_lang.embedded_protocol.Value.Color color)
      • toRgbColorFromHwb

        public static com.sass_lang.embedded_protocol.Value.Color toRgbColorFromHwb​(com.sass_lang.embedded_protocol.Value.ColorOrBuilder hwbColor)
      • toRgbColorFromHsl

        public static com.sass_lang.embedded_protocol.Value.Color toRgbColorFromHsl​(com.sass_lang.embedded_protocol.Value.ColorOrBuilder hslColor)
      • toHslColor

        public static com.sass_lang.embedded_protocol.Value.Color toHslColor​(com.sass_lang.embedded_protocol.Value.Color color)
      • toHwbColor

        public static com.sass_lang.embedded_protocol.Value.Color toHwbColor​(com.sass_lang.embedded_protocol.Value.Color color)
      • rgb

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

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

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