SLMs typically consist of an array of pixels that can individually modulate light. These pixels can be controlled electronically to create desired light patterns. The modulation can be achieved using various mechanisms such as liquid crystals, micro-electro-mechanical systems (MEMS), and deformable mirrors. The ability to control light at such a fine level makes SLMs invaluable in nanophotonics and other nanotechnology applications.