maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   DeluxePain: paint program (https://talk.maemo.org/showthread.php?t=27481)

ciroip 2009-03-13 12:24

DeluxePain: paint program
 
...still problems sleeping:
Just a teaser to show the complete abscence of interface...
the idea here is to test how fast can perform a paint program with this variables:
bad programmer+python+pygame
(by now painfully slow :( )

z, x, c, v,b = change colors (white, k, r,g,b)
left = decrease the pen size
right = increase the pen size
up and down pen's brightness? hue?
Everything works in 'realtime' (no need to interrupt drawing to change setting) so should be possible to achieve some old school effects (the main purpose of screenshot is to bring out tears from amiga people's eyes
https://garage.maemo.org/frs/downloa...easer0.0.1.jpg

happy weekend

ciroip 2009-03-14 03:02

Re: DeluxePain: paint program
 
the application is not nearly as reactive as it should be (waiting liqbase lib?) but is nearly usable ( I mean the core simple drawing part). The stylus/screen is precise enough but the pygame line rendering is AWFUL and does not support any antialias or alphachan :(.
the thing is so basic that works on the tablet AND on any desktop with python+pygame.
new keys:
q: point line
w: continuos line
z, x, c, v,b = change colors (white, k, r,g,b)
left = decrease the pen size
right = increase the pen size
central key on the keypad = cls
https://garage.maemo.org/frs/downloa...680/dlp001.tgz
usual python25+pygame17
http://2.bp.blogspot.com/_dJxUMWNDJx...400/dlp001.jpg
http://4.bp.blogspot.com/_dJxUMWNDJx...400/dlp002.jpg

Laughing Man 2009-03-14 03:17

Re: DeluxePain: paint program
 
Cool, though is the name really is DeluxePain? Haha.. when I saw it was a painting program I thought you meant DeluxePaint.

qole 2009-03-14 06:32

Re: DeluxePain: paint program
 
Hilarious name! For nearly the first time I wish I had an N810 -- keyboard shortcuts!

...former passionate Amiga owner and Commodore employee :)

ciroip 2009-03-14 11:22

Re: DeluxePain: paint program
 
Quote:

Originally Posted by Laughing Man (Post 271550)
Cool, though is the name really is DeluxePain? Haha.. when I saw it was a painting program I thought you meant DeluxePaint.

No, it is literally a pain watching the pygame line algorithms spread its hate on the tablet screen + there is no port of antialias for the 65535 nokia' color mode : <old fart wining>popular solutions these days seem always wait for next hardware to fix software issue</old fart wining>
+ no alpha (Im pondering to prepare some prerendered .png for a brush set and see how fast the application can manage it (I had some good results updating just the 'brush' area instead of the entire computationally huge 800x480 screen.

Quote:

Originally Posted by qole (Post 271570)
Hilarious name! For nearly the first time I wish I had an N810 -- keyboard shortcuts!
...former passionate Amiga owner and Commodore employee :)

I dont own an N800 (as you can imagine the second hand market for this kind of device in Italy is not so huge) but I always loved the external keyset: I m going to try a new onscreen interface anyway (a sort of popup keyboard but with the program interface and use the tablet's minimal common denominator Dpad to tweak the current function without having to interrupt drawing and having to bring up the interface each time.
Commodore employee??? Green with envy

lcuk 2009-03-14 11:45

Re: DeluxePain: paint program
 
heh ciro fun.

alhpa blending the lines wouldnt be productive (and liqbase doesnt even try to do it by the way), but you should be able to do it with brushes quite well.
my first attempts at drawing stuff were variations using python and its libraries.
it upset me when i quickly drew a circle and ended up with at most a pentagon.

you should be able to limit the range of your rendering though, i believe numpty physics tries this to some success

as for waiting for hardware, i've always been taught to make the most of what you have at hand.

ciroip 2009-03-14 14:09

Re: DeluxePain: paint program
 
Quote:

Originally Posted by lcuk (Post 271591)
heh ciro fun.

alhpa blending the lines wouldnt be productive (and liqbase doesnt even try to do it by the way), but you should be able to do it with brushes quite well.

yep, but could be usefull for squares, circles and polygons.
Quote:

you should be able to limit the range of your rendering though, i believe numpty physics tries this to some success
again yes, I even tried to limit the update area for plain draw but the performance didnt changed too much. It will be probably handy with small semi-traspharent .png 'brushes'.
Quote:

as for waiting for hardware, i've always been taught to make the most of what you have at hand.
oh, I learned to read a bit of different persons personalitie here dont worry :)
I jumped on the tablet boat a couple of years too late so to me all this fremantle speechs seem a bit a waste of time: seem there is still a lot of fun with the 770, 800 and 810 to unleash. From a wannabe developer point of view I would love a complete symbian OS running on the tablet and open the door to ovi but im not sure nokia REALLY want the tablets TOO mainstream :). Im definitevely not a marketing guy :)
Buona domenica

ciroip 2009-03-16 15:50

Re: DeluxePain: paint program
 
Still sticking to the original plane of a full screen no interface application but the growing number of setting (and the N800 support) suggest me to add a popup interface (and when the toolpanel is on the rest of the screen can be used to test the new settings)
http://farm4.static.flickr.com/3461/...7c382c43_o.jpg

http://farm4.static.flickr.com/3548/...c1c86572_o.jpg
I was thinking to use the N810 led to show the current color but it really dont match the RGB tripled but could be a fun feature to ust have an idea of [...]


All times are GMT. The time now is 19:52.

vBulletin® Version 3.8.8