A device for providing a 1D line of an image is disclosed. The device includes a wavelength-tunable light source for providing image light having the angular distribution encoded in optical spectrum. The device further includes a thin slab waveguide having an out-coupler in form of a diffraction grating for out-coupling the image light at an angle dependent on wavelength. The image may be formed by scanning a collimated beam propagating in the slab waveguide when using tunable monochromatic light sources, or by forming the 1D singular distribution of brightness at a same time when using a tunable-spectrum light sources. The device may be used in a near-eye display for forming a 2D image in angular domain.