Using 3 sliders (RGB) to match a 'target' color: Colors don't match


#1

The purpose of this program (to be part of another program) is to present a randomly selected ‘target’ color and then the user is to match that color using three sliders, one each for red, green and blue.

The problem is that when I match the color using the RGB colors used in the target color, the swatches do not match… the corollary is that if I do what the program is designed to do (i.e., match the two color swatches by ‘eye’, the displayed ‘values’ of RGB aren’t very close to the displayed values for the target swatch.)TestColor_Slider.nsx (50.4 KB)

Tom


#2

It’s because you’re using Buttons to display the color. The left button is disabled, which gives it a lighter color than the right button.

George Henne
NS BASIC Corporation
http://www.nsbasic.com


#3

Thank you so much!!!


#4

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.