title: replace all red pixels in apple image with green green, including gradient red ios
body: <p>I am doing change color of my apple shown below:</p>
  
  <p><img src="https://i.stack.imgur.com/xWEYU.png" alt="enter image description here"></p>
  
  <p>to change all red colors to green and all yellow to orange. My problem is how to select all kind of red color and how to select all kind of yellow to apply new effect or color.</p>
  
  <p>Any help please.</p>
  
  <p>Thanks</p>