abi>>forums

abi>>forums (http://www.anythingbutipod.com/forum/index.php)
-   Download Zen X-Fi2 Games & Applications (http://www.anythingbutipod.com/forum/forumdisplay.php?f=223)
-   -   my first app -paint (http://www.anythingbutipod.com/forum/showthread.php?t=51812)

cilmaviel 01-22-2010 08:18 PM

my first app -paint
 
1 Attachment(s)
Hello all, I finished my first app (first version of it anyway) it's a paint/drawing app, and thought I would share it and maybe get a few suggestions. It can be found here...

Current version: 1.7 -
thanks again to Habhome for adding more colors to the color selector.

Greatly increased the responsiveness while drawing and added a line tool, hold the screen at a point till the H appears in the bottom right corner and then hold the screen it another point and it will draw a line between the 2.

Thanks to Habhome for developing v1.4 with new icons and interface and adding new Behavior
Quote:

1. When you select the eraser it remembers your previous color
for when you deselect the eraser. Also the color marker does
not automatically jump to the white/black color.
2. When you switch to white background it now changes the white
color button to black.
-i have made it slightly more responsive but at a cost, drawing too fast makes smooth lines into jagged ones so take it slow if you want nicer looking curves.
-also added a "eraser" that shows as you erase things, but only for brushes 2 and 3.

From version 1.3...
-less lag ( drawing curves too fast will make make lines instead of a smooth line.
-3 different sized "brushes".
-an eraser.
-and ability to change to a white background ( this will clear the screen and change white to black ).

The screen does lag a bit while drawing and there is of course no save. it has 5 colors and white, click the home to clear and if you click home while it is clear to exit

P.S. a pencil or stylus helps a lot with precision.

Screenshot:
http://lh4.ggpht.com/_eJO78_nwX4o/S3...Q/untitled.jpg

Watch the gameplay video here: http://youtu.be/SLrft-oNLJ0

RobertsAccount 01-23-2010 02:47 AM

Brilliant app! I have a quick suggestion, I would much appreciate a 'Line Thickness' option, maybe a slider? I know this is your first application so, congrats!

fzbm123 01-23-2010 04:27 AM

hey thx for the apps! anw i hav some suggestion:
-highlight a colour when it is selected so tat we know which colour we are using
-an eraser
-reduce the lag
-more colours
THX!

Habhome 01-23-2010 08:20 AM

Really nice. If you manage to get rid of the lag it'll be great.
And I have one addition to the list of things to improve. When you choose a color it makes a dot with the previous color on top of the color changing button, could you make it not do that?

JJLoke 01-23-2010 09:43 AM

great work!

i suggest that u could work on the save option, save it as a picture with an auto date stamp in the picture folder

and an open function to open the saved picture

ThievingSix 01-23-2010 10:13 AM

There won't be a save option until Creative adds something to save pictures.

cilmaviel 01-23-2010 12:50 PM

thanks for the suggestions. i updated the link to a new version that shows the active color and added yellow and orange. im going to try to add some brushes in upcoming versions. i also removed the ability to draw over the buttons.

as for the save, i was thinking that if there was matrix the size and shape of the screen that held the pixel data before it gets drawn to the screen (like a buffer), then the matrix could be saved to a file and drawn to the screen. and maybe different pages could be made to draw on. i will be trying to find a way to use this to save too.

ThievingSix 01-23-2010 12:59 PM

I guess on all events you could just save the x, y to a table. Save the table to a file with IO. And reload it and redraw.

RobertsAccount 01-23-2010 03:06 PM

Quick thought, would it be possible to choose the colors from a drop down menu? This way the color buttons wouldnt get in the way of the pwetty picture :)

JJLoke 01-23-2010 11:33 PM

i do not think the drop down would be a feasible solution on the touchscreen, unless there is an icon to be pressed. i did prefer the menu to appear when the home button is pressed, then exit the program from there

fzbm123 01-24-2010 04:38 PM

can u
-add an eraser with different sizes
-reduce the lag
THX!

kushndonuts 01-24-2010 06:02 PM

Great job
You did exactly what I wanted to do with my paint app. but maybe you could add a line button to draw straight lines

RobertsAccount 01-25-2010 01:46 AM

Quote:

Originally Posted by kushndonuts (Post 435711)
Great job
You did exactly what I wanted to do with my paint app. but maybe you could add a line button to draw straight lines

Forgive me if I'm wrong, but I believe that there was a line drawing tool in an earlier version :).

Brett_val 01-26-2010 09:24 AM

I just tried v1.2 and it looks very nice! It looks quite professional with the color buttons. Much improvement over the first version.

Some different sized brushes would be nice, and also, is there something that can be done about the lag? I don't mind if it stays like this, I was just wondering if there are optimizations to be done or that the player is just slow.

And to save the creations of course.. how is it going with saving the coordinates to a file and redrawing them?

cilmaviel 01-26-2010 12:05 PM

there is good and bad news about saving. first i did manage to get a save working...kinda ( touch.move only records points and drawline connects them, so far only the points are saved) but a bigger problem is that it works fine on the simulator but it makes the player crash, my guess is that it is too much for it to handle...much like if you try v1.2 on the sim there is no lag.

where is the code for the saving version if anyone has some ideas for optimization
http://www.mediafire.com/?jj2qdnii2gn
to save, hold down the home button

so instead of a save ill work on other things to add, i should have a new version soon unless i hit any problems.

Jan_DK 01-26-2010 12:27 PM

Quote:

Originally Posted by cilmaviel (Post 436088)
there is good and bad news about saving. first i did manage to get a save working...kinda ( touch.move only records points and drawline connects them, so far only the points are saved) but a bigger problem is that it works fine on the simulator but it makes the player crash, my guess is that it is too much for it to handle...much like if you try v1.2 on the sim there is no lag.

where is the code for the saving version if anyone has some ideas for optimization
http://www.mediafire.com/?jj2qdnii2gn
to save, hold down the home button

so instead of a save ill work on other things to add, i should have a new version soon unless i hit any problems.

In the thread http://www.anythingbutipod.com/forum...ad.php?t=50811 we found out that the current X-Fi2 Lua environment do not have enough memory to allocate a buffer the size of the screen.

So this code eg. from Paint is not going to work on the X-Fi2.

You are not doing anything wrong, it's the player,,,

Code:

for w = 1, 400 do
    for h = 1, 240 do
        acn = data:read()
        mt[w][h] = acn
        screen.drawpixel(w, h, activecolor())
    end
    screen.update()
end

Jan_DK

Brett_val 01-26-2010 12:41 PM

And if you let it draw smaller parts at a time? Instead of 400x240 pixels at once, say, 100x60, then 100-200x60-120, etc?

Or maybe only have it draw the pixels that have a color. Just to decrease the memory to be read.

cilmaviel 01-26-2010 10:09 PM

i've updated the first post with a new version...details are there.

i am going to try a few things to get saves working, but with the limits of the device it might make things more laggy, might even have to wait and see if creative will release something in a sdk.

Les23 01-27-2010 07:53 AM

mmm the link in the first post redirect always to the 1.2 version :P

cilmaviel 01-27-2010 10:37 AM

Quote:

mmm the link in the first post redirect always to the 1.2 version :P
hmm, the url is the same but it should work now


All times are GMT -5. The time now is 06:24 AM.