delorie.com/archives/browse.cgi | search |
From: | "NoDuck!!!!" <info AT nospam@noduck.nl> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: drop shadow |
Date: | Sat, 14 Oct 2000 22:47:51 +0200 |
Organization: | Kabelfoon B.V. |
Lines: | 27 |
Message-ID: | <8sah2i$77l$1@news.kabelfoon.nl> |
References: | <8s4r4u$lc7$1 AT news DOT kabelfoon DOT nl> <KqnF5.32137$uq5 DOT 623358 AT news6-win DOT server DOT ntlworld DOT com> |
NNTP-Posting-Host: | k1zb373.dial.kabelfoon.nl |
X-Trace: | news.kabelfoon.nl 971556754 7413 62.45.40.247 (14 Oct 2000 20:52:34 GMT) |
X-Complaints-To: | abuse AT kabelfoon DOT nl |
NNTP-Posting-Date: | Sat, 14 Oct 2000 20:52:34 +0000 (UTC) |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2615.200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi, thanks for your comments but: the dial turns, so when I make a shadow by placing darkened pixels a bit to the right or left it doesn't look natural, It's as if the lightsource turns with the dial..... Graham Reeds <grahamr AT dtn DOT ntl DOT com> schreef in berichtnieuws KqnF5.32137$uq5 DOT 623358 AT news6-win DOT server DOT ntlworld 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 > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |