ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/12/14:46:26

From: "Graham Reeds" <grahamr AT dtn DOT ntl DOT com>
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: <KqnF5.32137$uq5.623358@news6-win.server.ntlworld.com>
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019