Fandom

Computer Graphics

Drop shadow

158pages on
this wiki
Add New Page
Talk0 Share
Blurshadow

A red rectangle casting a drop shadow over a wood-like background.

In computer graphics, a drop shadow is a visual effect consisting in drawing what 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 operating systems has a drop shadow, as this effect effectively distinguishes the text from any colored background it may be in front of.

A simplistic 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. Blurring the edges of the shadow.

External linksEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.