does there happen to be some well known, standard, staple of an algorithm for placing a color spectrum using it's RGB values and a desired height and width?
for example, in Adobe's creative suite apps (image attached) there is the color window. at the bottom of this window is a general color spectrum in rectangular form. assuming this isn't an image, how is it programmed? there is also white at the top and black at the bottom, which must also be taken into consideration. is this complicated or have i just not been thinking about it clearly?
another example would be apple's color picker panel. it's resizable. but how is the placement of millions of colors, all that have their own RGB values placed only given length and height of it's containing frame?
for example, in Adobe's creative suite apps (image attached) there is the color window. at the bottom of this window is a general color spectrum in rectangular form. assuming this isn't an image, how is it programmed? there is also white at the top and black at the bottom, which must also be taken into consideration. is this complicated or have i just not been thinking about it clearly?
another example would be apple's color picker panel. it's resizable. but how is the placement of millions of colors, all that have their own RGB values placed only given length and height of it's containing frame?