Digital Diffractive Optics