This simple example comes from my blog on Using gradients for abrupt color changes in data visualizations
Showing how an underlying gradient can be updated when you move the brush over the rectangle
You can see this technique of abrupt color changes applied to an actual data visualization in these two examples