s2maps-gpu - v0.18.0
    Preparing search index...

    Function colorParser

    • There are four types of strings to parse:

      • color names: 'red', 'black', etc
      • Hex: #ededed
      • lastly type encodings:
        • rgb(255, 255, 255)
        • rgba(255, 255, 255, 255)
        • hsv(180, 0.9, 0.7843137254901961)
        • hsva(180, 0.9, 0.7843137254901961, 1)

      Parameters

      • input: string

        the string to parse

      Returns ColorDefinition

      the parsed color