Hi, do anyone know a simple paint tutorial or example in cocos2d? (paint by touch) :-)
Paint
(6 posts) (5 voices)-
Posted 2 years ago #
-
Im not sure cocos2d is best for painting app. Making a Quartz based app would probably give you much more power. Is it a game too - do you need fast opengl sprite animation too? If not - read up on Quartz.
Posted 2 years ago # -
See the RenderTextureTest (comes with cocos2d-iphone source code) for how to implement a paint-like application.
Posted 1 year ago # -
Do you guys know how can i erase something i drawed?
I am using the rendertexture test for a little project and i would need to have an erase tool. I have been playing with the blendfunc but i haven't been able to create an erase tool which can erase what i just drawed.
Any help is appreciated.Thanks
Posted 1 year ago # -
I managed to make it work!
To start erasing just set your brush's texture to a totally black image and then
[brush setBlendFunc:(ccBlendFunc) {GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA}];to paint again:
[brush setBlendFunc:(ccBlendFunc) {GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA}];Posted 1 year ago # -
Hey Pablo, I am unable to get the eraser tool. can you help me?
Posted 6 months ago #
Reply
You must log in to post.