# Path: art/baseclasses/blobs.py
# class Blobs(ArtBaseClass):
# 
#     def __init__(self, matrix, config):
#         with HQ(matrix):
#             self.pens = []
#             for i in range(PENS):
#                 dx = 1 if (i/2) % 2 == 0 else -1
#                 dy = 1 if i % 2 == 0 else -1
#                 pen = Pen(
#                     matrix.width, matrix.height,
#                     matrix.width/4 + random()*matrix.width/2,
#                     matrix.height/4 + random()*matrix.height/2,
#                     dx=dx, dy=dy, radius=matrix.smallest/SIZE,
#                     huedelta=uniform(0.005, 0.001),
#                     )
#                 pen.setBumpStrategy(pen.reverse, x=True, y=True)
#                 self.pens.append(pen)
# 
#     def start(self, matrix):
#         matrix.clear()
#         matrix.hq()
# 
#     def interval(self):
#         return 100


from .baseclasses.blobs import Blobs
from ._baseclass import ArtBaseClass


class Art(Blobs):
#class Art(ArtBaseClass):

    description = "Bouncing blobs (psychedelic mix)"

    def start(self, matrix):
        pass

    def refresh(self, matrix):

        #matrix.fillCircle( 10, 7, 5, (255, 255, 255))

        matrix.fade(0.97)
        matrix.rotate(5)

# Path: art/baseclasses/blobs.py
# class Blobs(ArtBaseClass):
# 
#     def __init__(self, matrix, config):
#         with HQ(matrix):
#             self.pens = []
#             for i in range(PENS):
#                 dx = 1 if (i/2) % 2 == 0 else -1
#                 dy = 1 if i % 2 == 0 else -1
#                 pen = Pen(
#                     matrix.width, matrix.height,
#                     matrix.width/4 + random()*matrix.width/2,
#                     matrix.height/4 + random()*matrix.height/2,
#                     dx=dx, dy=dy, radius=matrix.smallest/SIZE,
#                     huedelta=uniform(0.005, 0.001),
#                     )
#                 pen.setBumpStrategy(pen.reverse, x=True, y=True)
#                 self.pens.append(pen)
# 
#     def start(self, matrix):
#         matrix.clear()
#         matrix.hq()
# 
#     def interval(self):
#         return 100


# Path: art/psyblobs.py
from .baseclasses.blobs import Blobs
from ._baseclass import ArtBaseClass



class Art(Blobs):
#class Art(ArtBaseClass):

    description = "Bouncing blobs (psychedelic mix)"

    def start(self, matrix):
        pass

    def refresh(self, matrix):

        #matrix.fillCircle( 10, 7, 5, (255, 255, 255))

        matrix.fade(0.97)
        matrix.rotate(5)

        for pen in self.pens: