Raster scan displays use a sweeping electron beam to illuminate spots on the screen in a row-by-row fashion to generate an image. Intensity values for each pixel are stored in a refresh buffer and read out row-by-row to control the beam. Raster scan allows for photorealistic color images but requires high memory and has lower resolution than random scan displays. Random scan displays draw images by directing the electron beam only to locations with picture elements, tracing out lines specified by commands in a refresh buffer. This allows for higher resolution with less memory usage but limits images to simple drawings with few colors.