title: Using rmagick to colorize an image like in photoshop
body: <p>So I have this base image:</p>
  
  <p><img src="https://i.stack.imgur.com/wJSHO.png" alt="enter image description here"></p>
  
  <p>And in photoshop I do a basic layer color overlay, with the rgb colors:</p>
  
  <p>r: 244, g: 93, b: 0</p>
  
  <p>This gives me the amazingly vibrant:</p>
  
  <p><img src="https://i.stack.imgur.com/j1s9J.png" alt="enter image description here"></p>
  
  <p>What I'm trying to do is colorize the same image in rmagick, so if I do the following colorize:</p>
  
  <pre><code>  img = Magick::Image.read('brush.png').first
    img = img.colorize(100, 100, 100, Magick::Pixel.new(244, 93, 0, 1))
    img.format = 'png'
    img.to_blob
  </code></pre>
  
  <p>It gives me this really washed out orange image:</p>
  
  <p><img src="https://i.stack.imgur.com/kFlgD.png" alt="enter image description here"></p>
  
  <p>My questions is, how do I colorize this image with those rgb params in imagemagick / rmagick, to get the same vibrant color that I got in photoshop.</p>
  
  <p>Thanks.</p>