threejs-worldgen
    Preparing search index...

    Function hexToRgb

    • Parses #rrggbb into linear-ish 0…1 RGB (sRGB values; three converts when you set color.setRGB with a colour space).

      Parameters

      • hex: string

      Returns [number, number, number]