decorative banner

Color conversion methods


    Array [4] rgb_to_hsl(rgba) {rgba is an array [4]} Converts a color in RGBA space to HSLA space. The input is an array specifying red, green, blue, and alpha, all in the range of 0.0 to 1.0. The resulting value is an array specifying hue, saturation, lightness, and alpha, also in the range of 0.0 to 1.0. For example, "rgb_to_hsl(effect("Change Color").param("Color To Change"))".

    Array [4] hsl_to_rgb(hsla) {hsla is an array [4]}. This is the opposite of rgb_to_hsl.