Drop Shadow

In computer graphics, a drop shadow is a visual effect consisting of drawing that looks like the shadow of an object, giving the impression that the object is raised above the objects behind it. The drop shadow is often used for elements of a graphical user interface such as windows or menus, and for simple text. The text label for icons on desktops in many desktop environments has a drop shadow, as this effect effectively distinguishes the text from any colored background it may be in front of.

A simple way of drawing a drop shadow of a rectangular object is to draw a gray or black area underneath and offset from the object. In general, a drop shadow is a copy in black or gray of the object, drawn in a slightly different position. Realism may be increased by:

  1. Darkening the colors of the pixels where the shadow casts instead of making them gray. This can be done with alpha blending the shadow with the area it is cast on.
  2. Softening the edges of the shadow. This can be done by adding Gaussian blur to the shadow's alpha channel before blending.

Famous quotes containing the words drop and/or shadow:

    Chaucer is fresh and modern still, and no dust settles on his true passages. It lightens along the line, and we are reminded that flowers have bloomed, and birds sung, and hearts beaten in England. Before the earnest gaze of the reader, the rust and moss of time gradually drop off, and the original green life is revealed. He was a homely and domestic man, and did breathe quite as modern men do.
    Henry David Thoreau (1817–1862)

    We saw one schoolhouse in our walk, and listened to the sounds which issued from it; but it appeared like a place where the process, not of enlightening, but of obfuscating the mind was going on, and the pupils received only so much light as could penetrate the shadow of the Catholic Church.
    Henry David Thoreau (1817–1862)