docs: def _gen_packet_setcolor(self, sequence, hue, sat, bri, kel, fade):
          """ Generate "setcolor" packet payload. """
          hue = min(max(hue, HUE_MIN), HUE_MAX)
          sat = min(max(sat, SATURATION_MIN), SATURATION_MAX)
          bri = min(max(bri, BRIGHTNESS_MIN), BRIGHTNESS_MAX)
          kel = min(max(kel, TEMP_MIN), TEMP_MAX)
  
          reserved1 = pack("<B", 0)
          hue = pack("<H", hue)
          saturation = pack("<H", sat)
          brightness = pack("<H", bri)
          kelvin = pack("<H", kel)
          duration = pack("<I", fade)
  
          # assemble payload
          payload = bytearray(reserved1)
          payload.extend(hue)
          payload.extend(saturation)
          payload.extend(brightness)
          payload.extend(kelvin)
          payload.extend(duration)
  
          return self._gen_packet(sequence, PayloadType.SETCOLOR, payload)