# 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 sqrt
from random import random
from opc.hue import getColorGen



SCALE = 4


class Art(ArtBaseClass):

    description = "Demo image rotation"

    def __init__(self, matrix, config):
        self.hue = getColorGen(0.006)

    def start(self, matrix):
        matrix.hq(True)

    def refresh(self, matrix):
        color = next(self.hue)
        width = matrix.smallest*0.45

# 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/rotate.py
from ._baseclass import ArtBaseClass
from math import sqrt
from random import random
from opc.hue import getColorGen




SCALE = 4


class Art(ArtBaseClass):

    description = "Demo image rotation"

    def __init__(self, matrix, config):
        self.hue = getColorGen(0.006)

    def start(self, matrix):
        matrix.hq(True)

    def refresh(self, matrix):
        color = next(self.hue)
        width = matrix.smallest*0.45

        hole  = matrix.smallest*0.25