Create waving flag with flagpole

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
StevenW

Create waving flag with flagpole

Post by StevenW »

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Create waving flag with flagpole

Post by anthony »

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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
StevenW

Re: Create waving flag with flagpole

Post by StevenW »

Thanks.
I know that example.
And you are right, I have got the problems with the flag pole. I will try further...
Post Reply