Takes sequence and alignment as input, draws the alignment's sequences
and also removed infinite loop from ColorGradientRectangle and changed
the way the rectangle is drawn.