@cccode/fxr - v22.0.0

    Function weightedAveragePalette

    • Create a new palette with the average of the entries in the given palette. Each entry in the input palette may have a weight property that controls how much the entry affects the average.

      Parameters

      • palette: WeightedColorPalette

        A color palette, with optional weights. The weights default to 1 if not set.

      Returns ColorPalette

    MMNEPVFCICPMFPCPTTAAATR