Hi all,
Is there a way to simulate how an airbrush tool or a
calligraphy brush works using Flash Drawing API? I'm talking
about drawing tools you see in MS-Paint, where an airbrush
produces random dots/circles near the mouse cursor while
calligraphy brush is like a regular brush but
] simulating airbrush + calligraphy brush
Hi all,
Is there a way to simulate how an airbrush tool or a calligraphy brush
works using Flash Drawing API? I'm talking about drawing tools you see
in MS-Paint, where an airbrush produces random dots/circles near the
mouse cursor while calligraphy
Thanks for the replies,
Yeah I was thinking the same about system chugging with lots of vectors to
handle.. I think I'm more to the BitmapData solution, since it is much
cleaner (adding pixels to the single BitmapData instead of having lots ad
lots of MCs). Thanks Danny
Guntur N. Sarwohadi
]
[mailto:[EMAIL PROTECTED] On Behalf
Of Guntur N. Sarwohadi
Sent: 28 February 2007 10:23
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] simulating airbrush + calligraphy brush
Thanks for the replies,
Yeah I was thinking the same about system chugging with lots
of vectors
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Danny Kodicek
Sent: 28 February 2007 13:24
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] simulating airbrush + calligraphy brush
A clever way to approach this would be to save the path
apply the airbrush effect in a bitmap along the path -
this way you can assign different brushes to the path after it's been
drawn, undo points etc.
mmm.. love the idea... but, what do you mean by placing bitmaps along a
path? did you mean it will also stretch or just show for every vertex of
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Guntur N. Sarwohadi
Sent: 28 February 2007 14:56
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] simulating airbrush + calligraphy brush
apply the airbrush effect in a bitmap
: Re: [Flashcoders] simulating airbrush + calligraphy brush
apply the airbrush effect in a bitmap along the path - this way you
can assign different brushes to the path after it's been
drawn, undo
points etc.
mmm.. love the idea... but, what do you mean by placing
bitmaps along a path
:28
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] simulating airbrush + calligraphy brush
yeah.. i usually just use lineTo in a loop while the mouse is
pressed.. no curveTo as i thought it's unnecessary.
so I just need to place the bitmaps after the lineTo? is that
all
http://www.quasimondo.com/archives/000572.php
I think someone beat you to it. Complete with source code:
http://www.quasimondo.com/scrapyard/BitmapExporter.zip
How lucky is that!
M
ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
Tel: 01964 672000
Fax: 01964 671102
hmmm... nice.. very nice.. but not exactly what i want to achieve.. it
seems it has a lag due to the 'calculating stuff to bitmaps'.. i need to be
responsive.. similar to MS-Paint.. and it doesn't have to look as good as
BitmapExporter.. but it is something i'll look in to, definitely.
if
If you want to simulate a painting application you have to be mindful of how
artists work. You WILL have ten of thousands of strokes being generated
which will at some point (depending on the users system) slow down the flash
player.
Many artists do lots of sketch style mouse actions where they
]
To: flashcoders@chattyfig.figleaf.com
Date: 2/28/2007 11:33:19 AM
Subject: Re: [Flashcoders] simulating airbrush + calligraphy brush
If you want to simulate a painting application you have to be mindful of how
artists work. You WILL have ten of thousands of strokes being generated
which
@Mick
I think I meant modifying bitmapData instead of placing bitmaps one by one..
but to make sure, are you referring to using copyPixels to a single
bitmapData per point creation?
@Michael
I see what you mean.. I think I wont need any undo feature (i'm not like
trying to make flash-photoshop
14 matches
Mail list logo