Lueur Avatar - v0.1.8
    Preparing search index...

    Function getColorFromHash

    • Generates a color from a hash value. Uses a predefined palette for aesthetic consistency.

      Parameters

      • hash: number

        The numeric hash value.

      Returns string

      A hex color string (e.g., '#RRGGBB').

      const color = getColorFromHash(12345); // Returns '#4CAF50'