• Use to extract a color or a factor from a color/factor select.

    Parameters

    • from: ratio_measure | colour_rgb

      The color or factor to extract this from.

    • surfaceColor: ColorRGBA

      The surface color (if this is a factor), which will be used to create the factor.

    • alpha: number = 1

      The alpha to use for this.

    Returns ColorRGBA