Pillowcases and quasimodular forms