@cccode/fxr - v31.0.0
    Preparing search index...

    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: (FXR | Node)[]

        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