title: Brush tool texture for a painting app
body: <p>Im working on a painting app which has a tool to brush similar to a painting brush. I've implemented so far through cocos2d, a format like the image </p>
  
  <p><p><img src="https://i.imgur.com/74Wwr.png" alt="the image"></p>.  But my client wants clear edged texture as the image <p><img src="https://i.imgur.com/y2cpH.png" alt="the image"></p>  Also the color of the former image is some what blurring indeed. How I can reduce blurring of the sprite image?  The image I am using as a texture is <a href="https://i.imgur.com/fTCws.png" rel="nofollow noreferrer">the image</a>. Im using a code derived from the <a href="http://code.google.com/p/cocos2d-iphone/source/browse/trunk/tests/RenderTextureTest.m?r=1325#46" rel="nofollow noreferrer">Cocos2d RenderTextureTest</a>.</p>
  
  <p>Also, the blend function Im using like in the below code</p>
  
  <pre><code>  [brush setBlendFunc:(ccBlendFunc){GL_ONE, GL_ONE}];
    [brush.texture setAliasTexParameters];
  </code></pre>
  
  <p>where, brush is my sprite with the above mentioned texture.</p>
  
  <p>Is there any other way to get the sharp edges as in the later image? Or how I can make the image stop blurring? I am struggling it for last few months. Please some experts look into this and help me.</p>