HOME | DD

psykopath — Proper Flash Drawing App

Published: 2007-04-06 08:24:01 +0000 UTC; Views: 12244; Favourites: 32; Downloads: 383
Redirect to original
Description 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.
Related content
Comments: 60

Dalek-who [2015-05-26 23:01:57 +0000 UTC]

Is There Any Way To Save The Drawings Made Here?

👍: 0 ⏩: 0

skygerz [2009-05-18 12:26:32 +0000 UTC]

AWESOME. i've tried and failed.

👍: 0 ⏩: 0

adampantha [2008-09-05 13:35:29 +0000 UTC]

i just get thrilled to bits with this... have you ever contemplated a gradient fill for this?

👍: 0 ⏩: 1

psykopath In reply to adampantha [2008-09-07 22:44:13 +0000 UTC]

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.

👍: 0 ⏩: 1

adampantha In reply to psykopath [2008-09-08 00:18:23 +0000 UTC]

Exactly. and that means there's more coloured fun to be had!

👍: 0 ⏩: 0

Nikush7 [2008-09-02 07:12:57 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

psykopath In reply to Nikush7 [2008-09-02 22:46:29 +0000 UTC]

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.

👍: 0 ⏩: 2

JohnJensen In reply to psykopath [2008-12-02 21:27:09 +0000 UTC]

So..when you want to erase something in BitmapData, you'd just have to use 32, and 00 for transparancy?

👍: 0 ⏩: 1

psykopath In reply to JohnJensen [2008-12-02 21:51:09 +0000 UTC]

yep

👍: 0 ⏩: 1

JohnJensen In reply to psykopath [2009-11-18 15:12:04 +0000 UTC]

so, setPixel32(x, y, 0x00FFFFFF);?

👍: 0 ⏩: 1

psykopath In reply to JohnJensen [2009-11-18 21:42:50 +0000 UTC]

Yeah.

👍: 0 ⏩: 1

JohnJensen In reply to psykopath [2009-11-19 00:07:27 +0000 UTC]

[link] Here's a little thing I'm working on in BitmapData.

👍: 0 ⏩: 0

Nikush7 In reply to psykopath [2008-09-03 15:28:41 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 0

adampantha [2008-08-22 08:29:14 +0000 UTC]

Beautifully done psykopath...
Would I be able to embed this into my game?
Funn credit to you if you accept

👍: 0 ⏩: 1

psykopath In reply to adampantha [2008-08-24 07:57:36 +0000 UTC]

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

👍: 0 ⏩: 1

adampantha In reply to psykopath [2008-08-24 09:59:32 +0000 UTC]

Okay then... I shall.... by the way... Are you able to create Save/Load functions for games?

👍: 0 ⏩: 1

psykopath In reply to adampantha [2008-08-24 22:48:26 +0000 UTC]

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

👍: 0 ⏩: 1

adampantha In reply to psykopath [2008-08-25 03:04:39 +0000 UTC]

oki then., Thanks.

👍: 0 ⏩: 0

Leemastah [2008-08-20 05:06:00 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

psykopath In reply to Leemastah [2008-08-20 22:38:11 +0000 UTC]

Thanks

👍: 0 ⏩: 0

andryeb [2007-09-06 10:56:52 +0000 UTC]

Edit-Undo

Wait.. none??!!??

👍: 0 ⏩: 1

psykopath In reply to andryeb [2007-09-07 07:51:40 +0000 UTC]

None? Its like paint, it undoes once, then the next time it undoes the undo. So you can really only undo once.

👍: 0 ⏩: 1

andryeb In reply to psykopath [2007-09-07 07:53:10 +0000 UTC]

Ctrl- z?

👍: 0 ⏩: 1

psykopath In reply to andryeb [2007-09-07 07:59:13 +0000 UTC]

I fail to understand your question

👍: 0 ⏩: 0

Reedo11 [2007-07-05 23:06:37 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 0

Reedo11 [2007-07-05 23:06:20 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

psykopath In reply to Reedo11 [2007-07-06 04:52:30 +0000 UTC]

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.

👍: 0 ⏩: 0

choask1699 [2007-04-11 23:34:48 +0000 UTC]

kkkoooollllliiioooooooooo
nice job on this 8D

👍: 0 ⏩: 0

ssjskipp [2007-04-10 03:55:09 +0000 UTC]

Nice !!! 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

👍: 0 ⏩: 1

psykopath In reply to ssjskipp [2007-04-10 09:51:49 +0000 UTC]

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?

👍: 0 ⏩: 1

ssjskipp In reply to psykopath [2007-04-10 19:13:30 +0000 UTC]

Yeah...>_>. If you came up with a more efficient system, that would be pretty sick !

👍: 0 ⏩: 1

psykopath In reply to ssjskipp [2007-04-12 06:25:22 +0000 UTC]

I do have a more efficent way of doing it, but I was just a tad too lazy to implement it.

👍: 0 ⏩: 1

ssjskipp In reply to psykopath [2007-04-14 06:42:19 +0000 UTC]

You've inspired me to make my own :3!

BITMAP DATA FOR THE MASSES!!!!

👍: 0 ⏩: 0

Drexegar [2007-04-10 02:46:28 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 0

Zappan [2007-04-06 16:21:44 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

psykopath In reply to Zappan [2007-04-07 02:57:43 +0000 UTC]

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

👍: 0 ⏩: 1

Zappan In reply to psykopath [2007-04-07 07:16:10 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

psykopath In reply to Zappan [2007-04-07 08:01:10 +0000 UTC]

Thanks, a while ago I tried setting up Apache and just couldnt get it to work

👍: 0 ⏩: 0

Supa-Monky [2007-04-06 12:47:18 +0000 UTC]

yay, you even put shift + drag on the circles

👍: 0 ⏩: 1

psykopath In reply to Supa-Monky [2007-04-07 02:56:58 +0000 UTC]

Of course!

👍: 0 ⏩: 0

ripe-cheese [2007-04-06 12:26:14 +0000 UTC]

nice scripting! i made somthing like that but i wasnt able to get the circle tool to work. this is really col great job!

👍: 0 ⏩: 0

swerno092 [2007-04-06 10:33:40 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 1

psykopath In reply to swerno092 [2007-04-06 11:32:57 +0000 UTC]

Dammit I was gunna do that and forgot!

👍: 0 ⏩: 1

swerno092 In reply to psykopath [2007-04-06 12:08:25 +0000 UTC]

Hidden by Admin

👍: 0 ⏩: 0

awesty [2007-04-06 10:07:05 +0000 UTC]

awesome work man

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. .

👍: 0 ⏩: 1

psykopath In reply to awesty [2007-04-06 11:35:21 +0000 UTC]

👍: 0 ⏩: 0

wonderwhy-ER [2007-04-06 08:45:46 +0000 UTC]

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

👍: 0 ⏩: 1

psykopath In reply to wonderwhy-ER [2007-04-06 11:34:19 +0000 UTC]

I think I saw a drawing chat flash thing somewhere online. Cant remember where though.

👍: 0 ⏩: 1

Supa-Monky In reply to psykopath [2007-04-06 12:46:30 +0000 UTC]

Ive seen it too

👍: 0 ⏩: 1

wonderwhy-ER In reply to Supa-Monky [2007-04-06 15:16:48 +0000 UTC]

Hmm. Any links?

👍: 0 ⏩: 1


| Next =>