blended transparent gif

Posted on 1998-09-11
Last Modified: 2010-04-27
can you describe to me how to make a transparent gif which
is a white bar next to a black bar into a blended image such
that white is the transparent color and it uses a color
palette of 2 for black and white. If reasoned that if it was
grayscale then I would only have a very thin strip of white
on one edge to be the transparent color. So I want the pixels in the middle areas all to be either black or white
with no grays. Then all the white pixels will become
the transparent color and I will get some image feed through
in the middle area where the white pixels are. I tried a
blur attempt using the standard blur image filter but this
is no good at all. What I want to do id to make an image
which is  the same size as a planet map. A planet map is a
rectangular map which can be mapped onto a sphere and rotated. I want to make another rectangle having one half
black and then superimpose this overr the planet sphere to
simulate the night area. I could make slightly less than half black and then have a narrow area band on each black
to transparent trasition area which is the blended strip
which I want you to help me with. Also I considered making
the black half to be less than 100% black and have some
of the pixels to be white and transparent to similate moon
light on a planets darkened half. Thanks
Question by:johnh619
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 1112478
I just read what I wrote and it seemed confusing. In any case the
thing is suppose to be to replace and entire java applet which
creates a twilight area on a rotating planet. The applet is too
large and I figure a transparent gif overlay would be much simpler. The finished gif I wish you to explain would look like
a sphere with a black hemispher for the night side and it would
have a twilight area which I wish you to explain to me. The whole
idea is based on the idea of limiting the color palette to two
colors of black and white and letting white be transparent. It
must be a palette of 2. And then also the black half of the
planet can be the same with a palette of two and some white
blended in to be the transparent color. thanks

Accepted Solution

vlad_impala earned 50 total points
ID: 1112479
Exactly how you do it will depend on your tool.
This is how I would do it using Paint Shop Pro - I'm using version so all the menu options etc are for version 4 but it should be too different in version 5.  Also version 4 cannot create transparent GIFS - you would have to use version 5 for that bit or another image editor.

1) create a new image the same size sqare as you want you circle to be, e.g. if you want your sphere to be 300 pixels in diameter make your new image 300x300 pixels.
2) make sure your current background and foreground tool colours are black and white
3) flood fill the entire image, using the linear gradient fill style - this will give a nice graded black to white fill.
4) reduce the colours to 2 colours (black and white) by selecting  the menu option Colors|decrease Colour Depth|2 colours - this will display an options window to specify how the colours are reduced.  If you specify Nearest colour it will turn it into half black half white, instead you should use either ordered dither or one of the error diffusion methods.  Different diffusion methods provide slightly different results, experiment until you get the one you like best.
5) using the selecting tool create a circular selection area
6) invert the selection (ie exclude the circle), and colour the surrounding area white.
7) specify white as the transparent colour (you may have to increase the colour depth back to 256 fo this) and save the image.

The keys to this are being able to flood fill with a linear gradient, and being able to specify error diffusion when you convert it to 2 colours.  Any tool that can do these two thing should be able to produce the effect quite easily.  I'm not sure if the image will produce the effect you want - it may not be smooth enough to mimic fading to black which uses various intermediate colours.

If you need any more help just ask.


P.S. you can get Paint Shop Pro at

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
In this second Micro Tutorial in the series,  viewers will learn more basic shortcuts and functions of Illustrator. In this tutorial you will learn about the eyedropper tool, zoom , ellipses and more.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question