@cccode/fxr - v22.0.0

    Function generatePalette

    • Generates a color palette that can be used to recolor other nodes based on the colors in the given nodes and their descendants.

      Parameters

      • sources: (Node | FXR)[]

        An array of FXRs or nodes to sample colors from.

      • mode: PaletteMode = PaletteMode.Average

        Controls the behavior of the color sampler. See PaletteMode for more information.

      Returns ColorPalette

    MMNEPVFCICPMFPCPTTAAATR