Hi!
I'm trying to create a waving flag with a flag pole. I have two gif files (flag + flagpole).
But it didn't really work.
Does someone has got an idea? Or an example?
Thanks!
Steven
Create waving flag with flagpole
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Create waving flag with flagpole
As a start point look at...
IM Examples, distortion anaimtions
http://www.imagemagick.org/Usage/distorts/#animations
I have a simple waving image and a link to the script that generates it.
The script needs some work to figure out the vertical offset for each frame
so the left edge does not move.
Adding a little highlight and shadow to the wave image could also make it look more realistic too.
It could go further with a diagonal wave, though how you would join that to a flag pole could be a bigger problem, as flags don't use a linear wave but one that curves.
If you come up with something please let me, the forum, know and hopefully contribute your result back.
IM Examples, distortion anaimtions
http://www.imagemagick.org/Usage/distorts/#animations
I have a simple waving image and a link to the script that generates it.
The script needs some work to figure out the vertical offset for each frame
so the left edge does not move.
Adding a little highlight and shadow to the wave image could also make it look more realistic too.
It could go further with a diagonal wave, though how you would join that to a flag pole could be a bigger problem, as flags don't use a linear wave but one that curves.
If you come up with something please let me, the forum, know and hopefully contribute your result back.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Create waving flag with flagpole
Thanks.
I know that example.
And you are right, I have got the problems with the flag pole. I will try further...
I know that example.
And you are right, I have got the problems with the flag pole. I will try further...