Class CSSHSLA

    • Constructor Detail

      • CSSHSLA

        public CSSHSLA​(@Nonnull
                       CSSHSLA aOther)
        Copy constructor
        Parameters:
        aOther - The object to copy the data from. May not be null.
      • CSSHSLA

        public CSSHSLA​(@Nonnull
                       CSSHSL aOther,
                       float fOpacity)
        Constructor
        Parameters:
        aOther - The HSL value to use as the basis. May not be null.
        fOpacity - Opacity part. Is fitted to a value between 0 and 1.
        Since:
        3.8.3
      • CSSHSLA

        public CSSHSLA​(@Nonnull
                       CSSHSL aOther,
                       @Nonnull @Nonempty
                       String sOpacity)
        Constructor
        Parameters:
        aOther - The HSL value to use as the basis. May not be null.
        sOpacity - Opacity part. May neither be null nor empty.
        Since:
        3.8.3
      • CSSHSLA

        public CSSHSLA​(int nHue,
                       int nSaturation,
                       int nLightness,
                       float fOpacity)
        Constructor
        Parameters:
        nHue - Hue value. Is scaled to the range 0-360
        nSaturation - Saturation value. Is cut to the range 0-100 (percentage)
        nLightness - Lightness value. Is cut to the range 0-100 (percentage)
        fOpacity - Opacity - is scaled to 0-1
      • CSSHSLA

        public CSSHSLA​(float fHue,
                       float fSaturation,
                       float fLightness,
                       float fOpacity)
        Constructor
        Parameters:
        fHue - Hue value. Is scaled to the range 0-360
        fSaturation - Saturation value. Is cut to the range 0-100 (percentage)
        fLightness - Lightness value. Is cut to the range 0-100 (percentage)
        fOpacity - Opacity - is scaled to 0-1