A two-variables function generator is described, which works on the principle of the cathode ray tube and photo-multiplier. The spot coordinates on the screen are done proportional to the input variables. An optical system projects the spot on a flat function plate and the photomultiplier picks up the light that goes through the function plate.