Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Joshua Meeds Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Transparent Color Date: Wed, 01 Apr 1998 22:49:34 -0800 Organization: SCEA News Server Lines: 25 Message-ID: <352334FE.FC6B6364@sinclair.net> References: <352228A8.7960@telecom.at> <6fta2o$6ne35@chuka.playstation.co.uk> <352239C4.2AA4@telecom.at> <6ftfvv$6ne37@chuka.playstation.co.uk> <3522c063.1836873@news.playstation.co.uk> NNTP-Posting-Host: dreamer.sincom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; I) Robert Swan wrote: > > On Wed, 1 Apr 1998 13:52:25 -0000, "Steve Dunn" > wrote: > > >I think you can set it's palette entry to 0,0,0 then set it as transparent ! > > From what I can gather, seeing as the rgb colours are 15-bit then > having a colour index with value 0,0,1, will get treated as black and > therefore tracnsparent with a sprite. With five bits per primary > colour, there are only 32 possible hues ... No, 0,0,0, is always the only true transparent black. 15 bit color just means 5 bits per value, meaning you have a range of 0..31 for each R,G,B rather than 0..63. You don't have to figure out how to change your 16-bits into 15 unless you are creating the pixel in memory by hand by setting its single 16-bit value. Thus, 0,0,1 would be a non-transparent black. -- - Dreamwriter Dragon dreamer@sinclair.net -==UDIC==-