0

Okay, so I've been trying to graph points that correspond to RGB or Hexadecimal color values so the points are placed on the correct color on here: Color Chart

The coordinates range X: [-240, 240] and Y: [107, -105]

How would I use python to evaluate the X and Y values?

Selcuk
  • 57,004
  • 12
  • 102
  • 110
  • There are only 100,000+ pixels in your range. 24 bit RGB colour space includes more than 16 million colours. – Selcuk Oct 28 '16 at 05:21
  • I'm just wanting to the nearest whole number, nothing exact – kgerot442 Oct 28 '16 at 05:32
  • I know that OpenCV can do this. Have a look [here](http://stackoverflow.com/questions/12187354/get-rgb-value-opencv-python). The Library PIL looks like it will do the same as well. Here is an [example](http://stackoverflow.com/a/138260/2687966) – TsvGis Oct 28 '16 at 05:37
  • It's not that there are gaps between the colors, it's that there are whole groups of colors that don't have anything close. Where are the grays for example? – Mark Ransom Oct 28 '16 at 05:38
  • @MarkRansom This is 'not counting' greys. This is for a display of statistics using colors in the range above – kgerot442 Oct 28 '16 at 05:44
  • So you're saying that if a color isn't in the image you provided, it won't be passed to you? – Mark Ransom Oct 28 '16 at 05:56
  • @MarkRansom Yes – kgerot442 Oct 28 '16 at 05:57

0 Answers0