Modular patterns