title: How to determine whether colour is within a range of shades
body: <p>I am not sure if this is possible as I have been looking for a few hours and cant find what I am looking for. </p>
  
  <p>What i am doing is taking a color from a game panel which is semi translucent so the color which I am taking is always subtly changing. What is need is a way to check if it is +/- 10 or so shades of my desired color. </p>
  
  <p>Something like 
  If color1 is +/-10 of 0x?</p>
  
  <p>I have tried using the image search to do similar but that didn't work. </p>
  
  <p>Any help would be greatly appreciated </p>