Sharp sprites

Im new for cocos2D and I would like to draw like

I tried using CCSprite and also got tired to allow it with

[brush setBlendFunc:(ccBlendFunc){GL_ONE, GL_ONE_MINUS_SRC_ALPHA}]; [brush.texture setAliasTexParameters];

But I only got the image as

in which the ribs are dull / blurry. How can I make blurry framed images as sharp as the first? Can someone suggest me the right way?

The code I use to create the above image,

  brush = [CCSprite spriteWithFile:@"sketch.png"]; [brush setColor:ccc3(0, 0, 0)]; brush.scale = 1.5f; [brush setBlendFunc:(ccBlendFunc){GL_ONE, GL_ONE_MINUS_SRC_ALPHA}]; [brush.texture setAliasTexParameters]; 

In the gesture method

  [brush setPosition:curntPoint]; [brush setRotation:rand() % 360]; [brush setOpacity:brushAlpha]; 

Thanks in advance.

0
source share

All Articles