class_docstr: Represents a color in terms of float values for RGBA between 0.0 and 1.0.
class_docstr_tok: ["Represents","a","color","in","terms","of","float","values","for","RGBA","between","0.0","and","1.0","."]
code: def from_hsv(cls, h: float, s: float, v: float, alpha=1.0):
      if not 0 <= h <= 1:
          raise ValueError(
              f"Hue has to be between 0.0 and 1.0 (was {h})"
          )
      if not 0 <= s <= 1:
          raise ValueError(
              f"Saturation has to be between 0.0 and 1.0 (was {s})"
          )
      if not 0 <= v <= 1:
          raise ValueError(
              f"Value has to be between 0.0 and 1.0 (was {v})"
          )
      return cls(*colorsys.hsv_to_rgb(h, s, v), a=alpha)
  
file_path: kubric/kubric/core/color.py
imports: import colorsys
  from typing import NamedTuple, Tuple, Union
label_desc: Use image node_id 5 for calling the Color obj's underlying member method code with example usage: obj.from_hsv(cls, h, s, v, alpha) and returns: cls