 Shades of gray were rendered by intermittently raising and lowering the pen, depending upon the luminance of the gray desired.Ranger's invention used capacitors to store charges, and vacuum tube comparators to determine when the present luminance, plus any accumulated error, was above a threshold (causing the pen to be raised) or below (causing the pen to be lowered).In this sense, it was an analog version of error diffusion.