Modified from Cross Boundary Brushes, an EG 2010 published project.