You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by commence8 <de...@gmail.com> on 2007/04/03 19:09:48 UTC
Free Distort like Illustrator
I'd like some help on implementing a "Free Distort" function like the one on
Illustrator. I can't seem to figure out an algorithm to do this sort of
black hole effect. Is something like this already built into Batik's
libraries?
--
View this message in context: http://www.nabble.com/Free-Distort-like-Illustrator-tf3517977.html#a9818571
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: Free Distort like Illustrator
Posted by th...@kodak.com.
Hi Depiano,
commence8 <de...@gmail.com> wrote on 04/03/2007 01:09:48 PM:
> I'd like some help on implementing a "Free Distort" function like the
one on
> Illustrator. I can't seem to figure out an algorithm to do this sort of
> black hole effect. Is something like this already built into Batik's
> libraries?
No nothing like this is implemented in Batik. To implement this you
would probably have to flatten the path (see Java GeneralPath methods).
Then define a 2D function that maps points:
P'.x = Fx(P.x, P.y)
P'.y = Fy(P.x, P.y)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org