Shop Mobile More Submit  Join Login
I finally decided to do a flash drawing program thing because people keep submitting them and only put in the smallest amount of scipting just to have drawing a line, so heres a full featured one complete with customisable polygons, fill modes, blend modes, even two filters and an undo function. Enjoy!

---------------------------------

Click, drag, release for basic tools.

Shift makes ellipses into circles.
Holding Control makes the circle have its corner at the start position, instead of being centered there.
Try Control + Shift when drawing circles.

To use the polyline tool, click and drag, press Space to add a corner, release to draw.

The keys 3 to 9 determine the number of sides on the Polygon tool. Pressing 0 will increase the number by, so you can put as many as you want.

There are three modes: line&fill, line, fill

When drawing shapes, the main color is the Fill, the second color is the Line.

Blend Mode doesnt affect the Brush tool.
Alpha doesnt affect the Brush tool.

Ctrl-Z is undo. You can only Undo once. You can Undo the Undo.
You can also Undo by using the right-click menu.

You can right-click for some options.

Also the eraser actually WORKS, it doesnt just draw white lines like in other flash drawing apps I've seen.
Add a Comment:
 
:icondalek-who:
Dalek-who Featured By Owner May 26, 2015
Is There Any Way To Save The Drawings Made Here?
Reply
:iconskygerz:
skygerz Featured By Owner May 18, 2009
AWESOME. i've tried and failed.
Reply
:iconadampantha:
adampantha Featured By Owner Sep 5, 2008  Hobbyist Filmographer
i just get thrilled to bits with this... have you ever contemplated a gradient fill for this?
Reply
:iconpsykopath:
psykopath Featured By Owner Sep 7, 2008
Didn't think of it at the time but it'd be really really easy to put in as it's already part of the drawing API.
Reply
:iconadampantha:
adampantha Featured By Owner Sep 7, 2008  Hobbyist Filmographer
Exactly. and that means there's more coloured fun to be had! :iconcoloncapitaldplz:
Reply
:iconnikush7:
Nikush7 Featured By Owner Sep 2, 2008
dude this is sweet!
can i just ask how you got the eraser to actualy erase pixels?
fav+
Reply
:iconpsykopath:
psykopath Featured By Owner Sep 2, 2008
It's BitmapData so you just do setPixel32(x, y, 0x00000000) in a loop. Can also do it with copyPixels() and threshold() (which would be faster) but because in this anyone can choose a color to use, threshold() could cause problems.
Reply
:iconjohnjensen:
JohnJensen Featured By Owner Dec 2, 2008
So..when you want to erase something in BitmapData, you'd just have to use 32, and 00 for transparancy? :D
Reply
:iconpsykopath:
psykopath Featured By Owner Dec 2, 2008
yep
Reply
:iconjohnjensen:
JohnJensen Featured By Owner Nov 18, 2009
so, setPixel32(x, y, 0x00FFFFFF);?
Reply
:iconpsykopath:
psykopath Featured By Owner Nov 18, 2009
Yeah.
Reply
:iconjohnjensen:
JohnJensen Featured By Owner Nov 18, 2009
[link] Here's a little thing I'm working on in BitmapData. 8-)
Reply
:iconnikush7:
Nikush7 Featured By Owner Sep 3, 2008
interesting, ill try it some day.
thanks for the wisdom!
Reply
:iconadampantha:
adampantha Featured By Owner Aug 22, 2008  Hobbyist Filmographer
Beautifully done psykopath...
Would I be able to embed this into my game?
Funn credit to you if you accept
Reply
:iconpsykopath:
psykopath Featured By Owner Aug 24, 2008
Thanks.

The code for it is pretty messy, but it's also fairly basic; so I say just work at it and you'll get a better one yourself :)
Reply
:iconadampantha:
adampantha Featured By Owner Aug 24, 2008  Hobbyist Filmographer
:D Okay then... I shall.... by the way... Are you able to create Save/Load functions for games?
Reply
:iconpsykopath:
psykopath Featured By Owner Aug 24, 2008
Yep, can be done.

BitmapData.getPixels() to get the information into a ByteArray
BitmapData.setPixels() to load bitmap from ByteArray

Or you can obviously write your own encoder (eg, something slow like converting every pixel to RGB values and store as a string).

Google for: loading bitmapdata from bytearray
Reply
:iconadampantha:
adampantha Featured By Owner Aug 24, 2008  Hobbyist Filmographer
oki then., Thanks. :D
Reply
:iconleemastah:
Leemastah Featured By Owner Aug 19, 2008
Wow. The one I made was just following a tutorial in my spare time. Yours blows mine out of the water and then slices it in half in midair with its teeth. Seriously, you just remade the flash drawing app, PERFECTLY, with flash. Awesome work.
Reply
:iconpsykopath:
psykopath Featured By Owner Aug 20, 2008
Thanks :D
Reply
:iconandryeb:
andryeb Featured By Owner Sep 6, 2007  Hobbyist Traditional Artist
Edit-Undo

Wait.. none??!!??
Reply
:iconpsykopath:
psykopath Featured By Owner Sep 7, 2007
None? Its like paint, it undoes once, then the next time it undoes the undo. So you can really only undo once.
Reply
:iconandryeb:
andryeb Featured By Owner Sep 7, 2007  Hobbyist Traditional Artist
Ctrl- z?
Reply
:iconpsykopath:
psykopath Featured By Owner Sep 7, 2007
I fail to understand your question
Reply
:iconreedo11:
Reedo11 Featured By Owner Jul 5, 2007
brilliant use of bitmap data and api, I've never seen a flash app thats this complex that doesn't lag like crazy. Good job! Fav'd
Reply
:iconreedo11:
Reedo11 Featured By Owner Jul 5, 2007
brilliant use of bitmap data and api, I've never seen a flash app thats this complex that doesn't lag like crazy. Good job! Fav'd
Reply
:iconpsykopath:
psykopath Featured By Owner Jul 5, 2007
Thanks. It does lag some if you set the brush size to anything above, say, 50. But thats a fairly unlikely scenario for something like this.
Reply
:iconchoask1699:
choask1699 Featured By Owner Apr 11, 2007
kkkoooollllliiioooooooooo
nice job on this 8D
Reply
:iconssjskipp:
ssjskipp Featured By Owner Apr 9, 2007
Nice :D!!! I love it! Very well programed...it's just...I don't know if it's me, but it lagged really bad...I don't know if it's a low FPS, or just the scripts...but, well, I'm not sure. Nice use of BitmapData instead of the line tool like everyone uses :D
Reply
:iconpsykopath:
psykopath Featured By Owner Apr 10, 2007
Thanks :) It lags for me when I use the eraser with a size bigger than 25 or so. Anything in particular you were doing to make it lag? Big brushes?
Reply
:iconssjskipp:
ssjskipp Featured By Owner Apr 10, 2007
Yeah...>_>. If you came up with a more efficient system, that would be pretty sick :D!
Reply
:iconpsykopath:
psykopath Featured By Owner Apr 11, 2007
I do have a more efficent way of doing it, but I was just a tad too lazy to implement it.
Reply
:iconssjskipp:
ssjskipp Featured By Owner Apr 13, 2007
You've inspired me to make my own :3!

BITMAP DATA FOR THE MASSES!!!!
Reply
:icondrexegar:
Drexegar Featured By Owner Apr 9, 2007
This is awesome! Ill have to give you a critique later I just wanted to let you know what I think about it.
Reply
:iconzappan:
Zappan Featured By Owner Apr 6, 2007  Hobbyist General Artist
Hey great :D I'm actually making a painter flash with php exporting (bmp, jpeg, gif, tiff and png) though my php code is too heavy at the moment :D
Probably another thing I won't finish :)

Let's fav yours :)
Reply
:iconpsykopath:
psykopath Featured By Owner Apr 6, 2007
Thanks. I probably wouldve tried doing some php with this, but I didn't re-pay for my hosting so no php-enabled server for me :(
Reply
:iconzappan:
Zappan Featured By Owner Apr 7, 2007  Hobbyist General Artist
Download "easyphp", easy way to have an apache light php-enabled local server ;)
Reply
:iconpsykopath:
psykopath Featured By Owner Apr 7, 2007
Thanks, a while ago I tried setting up Apache and just couldnt get it to work :(
Reply
:iconsupa-monky:
Supa-Monky Featured By Owner Apr 6, 2007
yay, you even put shift + drag on the circles :)
Reply
:iconpsykopath:
psykopath Featured By Owner Apr 6, 2007
Of course!
Reply
:iconripe-cheese:
ripe-cheese Featured By Owner Apr 6, 2007
nice scripting! i made somthing like that but i wasnt able to get the circle tool to work. this is really col great job!
Reply
:iconswerno092:
swerno092 Featured By Owner Apr 6, 2007
0.o awesome! It would be cool if you could add a blur tool, but this is already awesome enough XD
Reply
:iconpsykopath:
psykopath Featured By Owner Apr 6, 2007
Dammit I was gunna do that and forgot!
Reply
:iconswerno092:
swerno092 Featured By Owner Apr 6, 2007
This is just tooo coooool! I relay need to learn how to do this . . .gah your awesome dude
Reply
:iconawesty:
awesty Featured By Owner Apr 6, 2007
awesome work man :O

i have tried to make an eraser tool a while ago but failed. this is probably one of the best drawing apps made in flash i have seen, if not the best. :D.
Reply
:iconpsykopath:
psykopath Featured By Owner Apr 6, 2007
:D
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Apr 6, 2007
I been thinking on making online version of drawing program with good drawing possebilitys. But that is a lot of work... Stil it would be fun to have chat + photoshop thing where you can draw with other people :D
Reply
:iconpsykopath:
psykopath Featured By Owner Apr 6, 2007
I think I saw a drawing chat flash thing somewhere online. Cant remember where though.
Reply
:iconsupa-monky:
Supa-Monky Featured By Owner Apr 6, 2007
Ive seen it too
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Apr 6, 2007
Hmm. Any links?
Reply
Add a Comment:
 
×
Download SWF download, 21.6 KB




Details

Submitted on
April 6, 2007
Image Size
21.6 KB
Resolution
550×400
Link
Thumb
Embed

Stats

Views
8,020 (1 today)
Favourites
32 (who?)
Comments
59
Downloads
335
×