Patterns based on a grid