Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Elliott Lee Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Fading.. Date: Wed, 13 May 1998 15:38:37 -0700 Organization: Cisco Systems Lines: 17 Message-ID: <355A20ED.50CE92BF@netmagic.net> References: <6j25v8$aek17@chuka.playstation.co.uk> Reply-To: tenchi@cisco.com NNTP-Posting-Host: dhcp-e-39-237.cisco.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; U) Anders Clerwall wrote: > > Hi.. I've seen some fading done in many Yaroze programs.. How's it done? > If I LoadImage(&pic, (u_long *)picaddr); how do I fade it up/down to/from > black??? I really wanna do this.. please help! > > // Anders One postscript: Jim and Robert's solutions are currently the best way to do it. If you only modify the RGB intensity values in your GsSPRITE structure and say you smoothly decrement/increment them, you'll notice some weird flickering as the image's RGB values get mapped from whatever internal true color scheme is used into 15-bit color. - e! tenchi@netmagic.net http://www.netmagic.net/~tenchi/yaroze/