class Column(pygame.sprite.DirtySprite) :
- def __init__(self, group, hue, rect, tone) :
+ def __init__(self, group, hue, rect, tone, atBorder) :
pygame.sprite.DirtySprite.__init__(self, group)
self.state = False
onLeft = rect.centerx - onWidth / 2
rectOn = pygame.Rect((onLeft, 0),
(onWidth, rect.height))
+ if atBorder :
+ setattr(rectOn, atBorder, getattr(rect, atBorder))
+
self.surOn = gradients.vertical(rectOn.size, topRgba, bottomRgba)
w, h = rectOn.w, rectOn.h
toneRect = pygame.Rect(((w - tw) / 2, h - th), (tw, th))