# Path: opc/hue.py
# def getColorGen(step=0.05, hue=0, sat=1, val=1):
#     """
#     Generator that returns a stream of shades as colors
#     """
#     hue = getHueGen(step, hue)
#     while True:
#         yield hsvToRgb(next(hue), sat, val)


from ._baseclass import ArtBaseClass
from math import sin, cos, sqrt
from opc.colors import BLACK
from opc.hue import getColorGen




class Art(ArtBaseClass):

    description = "Downsample a high-res image to improve perceived clarity"

    def __init__(self, matrix, config):
        self.width = sqrt(matrix.numpix)/3

# Path: opc/hue.py
# def getColorGen(step=0.05, hue=0, sat=1, val=1):
#     """
#     Generator that returns a stream of shades as colors
#     """
#     hue = getHueGen(step, hue)
#     while True:
#         yield hsvToRgb(next(hue), sat, val)


# Path: art/rsquare.py
from ._baseclass import ArtBaseClass
from math import sin, cos, sqrt
from opc.colors import BLACK
from opc.hue import getColorGen





class Art(ArtBaseClass):

    description = "Downsample a high-res image to improve perceived clarity"

    def __init__(self, matrix, config):
        self.width = sqrt(matrix.numpix)/3

        self.hue = getColorGen(0.001)