from GraphicsUtil import toplength, topwidth

blockWidth = 25
x = 0
y = 0
YELLOW = (255, 255, 0)


lSurface = pygame.Surface((75,50))
lSurface.set_colorkey((0,0,0))


B1 = Block(blockWidth,blockWidth, YELLOW, x, y)


B1.groupDrawTBlock(lSurface)


class TBlock:
    def __init__(self):
        self.color = 7
       	self.surface = lSurface
        self.rotate = 0
        # pass

    
    def points(self):   
        if self.rotate%4==0:
            return [(0,1), (1,0), (1,1), (2,1)]
        if self.rotate%4==3:
            return [(1,0), (0,1), (1,1), (1,2)]