How can I make the Slider Color gradient change while the color sliders were moved?

I don’t know how to make this like that, so I found a website on Why YUI?. Anyone how to make the slider color change while the sliders are moving? please explain.

  1. I want to use it for Brick Breaker game to change background, paddle, and ball colour.
  2. What about Changing slider gradient?
  3. What about CMYK?
  4. What about HSB?
  5. The red slider must be blue to magenta if Blue slider was 255
  6. How to make the slider color move while the color sliders are moving for coding?
  7. How can I add RGB Value by text and Hex?
  8. The Colour image must be added after the color was selected from slider.