From: "Graham Reeds" Newsgroups: comp.os.msdos.djgpp References: <8s4r4u$lc7$1 AT news DOT kabelfoon DOT nl> Subject: Re: drop shadow Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Thu, 12 Oct 2000 19:23:32 +0100 NNTP-Posting-Host: 62.254.76.122 X-Complaints-To: abuse AT ntlworld DOT com X-Trace: news6-win.server.ntlworld.com 971375402 62.254.76.122 (Thu, 12 Oct 2000 19:30:02 BST) NNTP-Posting-Date: Thu, 12 Oct 2000 19:30:02 BST Organization: ntlworld News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You could simulate a shadow by redrawing the image slightly offset to the original image - i.e. two or three pixels to the left or right - as a on/off mask to darken the underlying image (i.e. the speedo itself). How you would do it specifically in Allegro, I don't know, but it might be as simple as reading in the pixel value and subtracting a fixed value off it (say 32 so we could use a shift) and clamp it so we don't affect any other components of the colour. Hope that helps. -- Stay Lucky, Graham "Mournblade" Reeds. ICQ No.: 30514803 http://homepage.dtn.ntl.com/grahamr