I have a need where in I have to show swatches of colors from which user will select a color which is then used as background color.
I have to generate randomly 100 color swatches and these colors should always be light so that text on them is clearly visible. For example Light Blue, Light Brown, Light Pink, etc. shades.
Any ideas as to how we can generate 100 random Light colors and show them as swatches in ImageEn?
Light colors are ones where all the R,G and B values are high, e.g. > 200. So you could write some method to generate a list of colors with high RGB values and then display them in the TIEColorPalette: