Composite Video Generating

Hmm, implementing color seems to be very hard. I don't understand what I need to generate from the RGB values. Since there is a color burst + the signal itself.