# SPDX-FileCopyrightText: 2021 Tim Cocks for Adafruit Industries
#
# SPDX-License-Identifier: MIT

import colorsys

hls = (0.4, 0.7, 0.5)
rgb = colorsys.hls_to_rgb(hls[0], hls[1], hls[2])
print(f"HLS {hls} == RGB {rgb}")

hsv = (0.8, 0.5, 0.5)
rgb = colorsys.hsv_to_rgb(hsv[0], hsv[1], hsv[2])
print(f"HSV {hsv} == RGB {rgb}")
