I’m trying to make an applet using only Java 2d
There’s this one tiny pseudo-element I want to implement
I want to be able to “stretch” a rectangle image in such a way that I can acheive an effect similar to this:
http://blog.muzy.com/wp-content/uploads/2010/05/tile-floor1.png
Now, the math of where the corners of the rectangle go is trivial. I know how to do that. But how can I acheive an effect like this with Java 2D, where I can manipulate each corner?
Is there even a way to do it? I couldn’t find one, but maybe I’m not searching for the right keywords.
Thanks