Nanophotonic phased array for visible light image projection