Could I ask for your insights please?
I am trying to make a kind of pixel art drawing app (see it on twitch
https://mokalux.itch.io/onetiletotileset)
I am using Pixels and I change its color with Pixel:setColor().
This is not very useable for drawings larger than 32 * 32 pixels on android.
Do you know any other way I can do this? It seems that Shape would be faster but I cannot change its color with the mouse. I tried with Shape:lineTo() but this is not drawing pixel art style.
Thank you in advance for your help.
Comments
http://forum.giderosmobile.com/post/quote/7704/Comment_59759
Thank you anyway! Peace.
@hgy29 thank you. I need to change the color of the pixel using the mouse (finger).
I am using rendertarget to render the final bitmap (can be 8*8, 16*16, 32*32... pixels).
So do you mean that I draw using regular shape:lineto and render it to rendertarget without filtering?
I think I need to use some kind of grid but right now I am limited to 32*32 only with this method
For this I would use a rendertarget of your final image size, map it onto a Bitmap and scale it up so that the user can see and interact with each pixel. Since it is a rendertarget, each pixel can then be updated by drawing a single 1x1 Pixel sprite onto the rendertarget.
If you want to have a border around each cell, just draw a Path2D over it with as many horizontal and vertical lines you need.
Likes: MoKaLux
You are correct this is a performance issue dealing with mouse move.
I don't understand when you say: How do I draw that 1 pixel? that is the question.
But don't worry I am still experimenting. With gideros we always find a way
Likes: MoKaLux
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
brush:setColor(color)
rt:draw(brush,offsetx,offsety)
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
@keszegh I was secretly hoping you would see my question don't forget that you are our gideros 2D man
VIVA GIDEROS FORUM! VIVA GIDEROS!
Likes: antix