A version of the previous block, but improved to speed the drawing and to make fast transitions.
Based on this block by Peter Beshai