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

    Module utils

    Functions

    getColorFromHash

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

    getContrastingTextColor

    Determines a contrasting text color (black or white) based on background luminance.

    getInitials

    Extracts initials from a username. Handles various name formats, including special characters and multiple words.

    getLuminance

    Calculates the luminance of a hex color.

    stringToHash

    Hashes a string into a numeric value. Used for deterministic color generation.