I am interested to understand what is happening on a wave-form representation of visible light, and what the waveform looks like, when various colors are "added" or "subtracted". For instance, if you say the visible spectrum is a continuous spectrum of a simple sinusoidal (sine wave) waveform, but then shine a red light and a green light on a board, you get yellow light reflecting, but the 2 sinusoidal waveforms have different frequencies so you will get a non-simple sinusoidal waveform reflecting. But you assumed the color spectrum was a continuous variation in simple sine-wave frequency, so how is this possible?
Light obeys something known as the superposition principle - that is, shining the red and green light together gives a combined waveform that is a simple sum of the two waveforms.
This is a caricature of what happens - the $\sin(x)$ can be taken as the 'red' light, the $\sin(2x)$ as the 'green' light, and the yellow plot is the sum of the two.
It turns out that there are infinitely many waveforms capable of being seen as 'yellow' due to the way that humans perceive light. You've probably heard that humans have red, green, and blue receptors - they are actually stimulated at all visible wavelengths, but have varying response strengths to different wavelengths:
To get the impression of 'yellow,' the brain thinks "I need a roughly equal 'red' and 'green' signal from the retina" – this can come from either monochromatic 575nm light, or a mixture of 545nm and 605nm light. These are two very different waveforms, but they are both seen as yellow light!
When red and green light both shine on a board, they don't actually make yellow light! Our eyes only interpret that mixture the same way as yellow. To understand how this works, see this picture of absorption spectra of our cones.
Green light at 535 nm mostly activates the green cones, while red light at 575 nm mainly activates the red cones. Yellow light at 560 activates both the green and red cones. However, the same effect can be made by activating the red cone and green cones separately. Therefore, our eyes interpret these the same way.