# Path: roglick/engine/colors.py
# class RGBBlendedColor(libtcod.Color):
# class HSVBlendedColor(libtcod.Color):
#     def __init__(self, color1, color2, blend=0.50):
#     def __init__(self, color1, color2, blend=0.50):
# def RGBtoHSV(r, g, b):
# def HSVtoRGB(h, s, v):


from roglick.engine import colors


def test_rgb_conversion():
    for rgb,hsv in get_color_fields():
        h,s,v = colors.RGBtoHSV(*rgb)

        # Need to round our percentages for comparison
        s = round(s, 2)
        v = round(v, 2)

        assert hsv == (h,s,v)

def test_hsv_conversion():
    for rgb,hsv in get_color_fields():

# Path: roglick/engine/colors.py
# class RGBBlendedColor(libtcod.Color):
# class HSVBlendedColor(libtcod.Color):
#     def __init__(self, color1, color2, blend=0.50):
#     def __init__(self, color1, color2, blend=0.50):
# def RGBtoHSV(r, g, b):
# def HSVtoRGB(h, s, v):


# Path: test/engine/test_colors.py
from roglick.engine import colors



def test_rgb_conversion():
    for rgb,hsv in get_color_fields():
        h,s,v = colors.RGBtoHSV(*rgb)

        # Need to round our percentages for comparison
        s = round(s, 2)
        v = round(v, 2)

        assert hsv == (h,s,v)

def test_hsv_conversion():
    for rgb,hsv in get_color_fields():

        r,g,b = colors.HSVtoRGB(*hsv)