RGBA color picker + paint

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

RGBA color picker + paint

Postby DST » Mon Jan 25, 2010 1:05 pm

I was planning to include a widget in my game that allows the user to draw their own custom logo for their space fleet. It started off as a color chooser, then got some drawing functions.

To keep it simple, i didn't use any data files, therefore nothing is labelled in game mode. On the toolbar, the buttons are (from left): Paintbrush, color dropper, createnew(smaller), createnew(larger), save, and load. You must click on paintbrush before drawing again after clicking one of the other tool buttons.

There are two sliders: the one on the left controls brightness, while the one on the right controls transparency. If you want to see how any of this was done, the code is all thoroughly documented.

Now i need to find a way to draw the final image several times in a game, without using a slow canvas draw(you can have 300 ships and, if you selected them all, the logo would appear over each one).

Anyone have any ideas on how to do this?
Attachments
RGBPaint.zip
(8.08 KiB) Downloaded 242 times
colortest.png
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: RGBA color picker + paint

Postby Hblade » Mon Jan 25, 2010 3:07 pm

Wow this is impressive! Though I have no idea how xD. Wow man good job.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: RGBA color picker + paint

Postby Bee-Ant » Sat Feb 27, 2010 1:30 pm

DST wrote:I was planning to include a widget in my game that allows the user to draw their own custom logo

Xixixi... :twisted:

Anyone have any ideas on how to do this?

Impossible I think...canvas still be used.
Even though you export the canvas to bmp, you can't display them without canvas...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest