java - Shape to shape morph -
straight main question - there libraries implement morphing 1 java.awt.shape
object one? under morphing here mean possibility create kind intermediate shape given 2 , progress value. (just vision):
shape shape1 = ...; shape shape2 = ...; float progress = 0.35f; shape intermediate = someshapeutils.intermediate( shape1, shape2, progress );
shapes , might have different amount of points in them like:
shape shape1 = new ellipse2d.double( 0, 0, 100, 100 ); shape shape2 = new line2d.double( 0, 0, 100, 0 );
generally seems possible implement this, require lot taken consideration unless case simplified simple shapes/conditions/restrictions less interesting , harder use on practice might not able control shape.
so before started inventing wheel wanted know if there existing solutions.
hints in advance!
Comments
Post a Comment