How To Design A Diffraction Pattern