Selva Compute API Reference - v2.1.0
    Preparing search index...

    Function parseColor

    • Parses a color string in multiple formats to a THREE.Color object. Supported formats:

      • Hex: "#C7A5A5", "C7A5A5"
      • RGB: "199, 165, 165"
      • CSS named colors: "red", "blue", etc.

      Parameters

      • colorString: string

        The color string to parse.

      Returns Color

      A THREE.Color object.