How Green Screen Worked Before Computers

For those of us who grew up in the age of CGI, green screen is just “a thing that computers do”. But how did effects like this work before the age of pixels?