Hi,

Everyone knows the loading spinner made famous by Apple.
One of the tricky things in web-design is creating a spinner for  
different color backgrounds.
This is because the spinner must be an animated gif which must be  
created with anti-aliasing that works over the given background.

It's possible to do this in GIMP or photoshop, but it is painstaking  
work which takes hours. I'm thinking it's probably possible in  
ImageMagick.
I'm not proficient enough to write the script, but here's my thinking:

1. Create a png 20x20 wide... of a given background color.
2. Draw a white round-corner box 7px tall and 2px wide with anti- 
aliasing. Repeat this with color value decreasing through the greys  
(i.e. fff, eee, ddd, ccc, etc. down to 444) and draw rotated lines at  
30 degree angles.
3. Create a composite file from all of these which becomes the first  
layer.
4. Repeat step 2 (at an offset of 30 degrees) and step 3 to create  
each of the 12 frames of the final animated gif.


Thoughts?

Noel da Costa
a r c   c o n t r a c t i n g
+27 (0)76 263 9544
www.arc2.co.uk

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to