topRgba = hls_to_rgba_8bits(hue, ON_TOP_LUMINANCE, ON_SATURATION)
bottomRgba = hls_to_rgba_8bits(hue, ON_BOTTOM_LUMINANCE, ON_SATURATION)
size = rect.inflate(2*rect.width,0).size
+ print rect.size, size
self.stateOn = gradients.vertical(size, topRgba, bottomRgba)
self.image = self.stateOff