OK, thanks to Jon for giving me a hope :-)
I'll try to be more specific now.

I'm developing  a product, Dynamic Blend Flash component which
allows you to dynamically build blend groups based on your symbols.
Have a look: http://www.gousable.com/flash/dynBlend.html

*Blend* tools in CorelDRAW or Freehand allow to "apply blend to
curve", which is very useful for creating visual effects.
So, I'd like to implement this, too.

The problem is that, unlike Corel, I can't know the user's curve
parameters and have to determine them in runtime.
I think the solution is to create a copy of user's curve (or parallel
one).
Do anyone know the appropriate algorithm (cubic curves etc)?

For now, user can only imitate "applying to curve" using some
tricks...

Thanks in advance.


> Jon Bradley wrote:
frcfc> Date: Thu, 3 Nov 2005 13:06:00 -0500
frcfc> From: Jon Bradley
frcfc> Subject: Re: [Flashcoders] How to draw a copy of a curve?
frcfc> To: Flashcoders mailing list <[email protected]>
frcfc> Message-ID: <[EMAIL PROTECTED]>
frcfc> Content-Type: text/plain;       charset=US-ASCII;       format=flowed

frcfc> On Nov 3, 2005, at 12:44 PM, Gregory_GOusable wrote:

>> Unfortunately, this is not appropriate for me :-( .
>> Also, I've just found the answer (negative) here:
>> http://www.faqs.org/faqs/graphics/algorithms-faq/
>>
>> Thanks to all who tried to help.
>Jon Bradley wrote:
frcfc> You mean to draw a parallel curve? Not with bezier, but with cubic 
frcfc> curves you can - and you can approximate a cubic curve with a set of 
frcfc> bezier curves, so the result is close enough ( <<<1pixel difference 
frcfc> from original curve normal).

frcfc> As you were checking the graphics gem FAQ, I don't think you worded 
frcfc> your question accurate enough for people here to help out.  Maybe 
frcfc> rephrasing what you are looking for may lead to better responses?

frcfc> cheers,

frcfc> jon

frcfc> Jon Bradley
frcfc> http://www.magicsnacks.com/shiftedpixels



-- 
Best regards,
 Gregory_GOusable                            
================================
http://GOusable.com
Flash components development.
Usability services.


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to