Testing the pattern as both a foreground and a  background by Mikael Rennerhorn
_