Path: chuka.playstation.co.uk!news From: "Rad" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Using BG functions (Help with changing tile colours) Date: Wed, 7 Apr 1999 15:14:46 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 41 Message-ID: <7efp9c$amo1@chuka.playstation.co.uk> References: NNTP-Posting-Host: vil-1.village.gre.ac.uk X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Hi Anthony, The RGB components of bg_data are brightness values not colour values. Therefore the colour is specified in the actual tile image. RGB of 0x80 will give you normal brightness, RGB of 0 will give you black and an RGB of 255 will give you white. I haven't used BG functions yet but I think this is correct. Rad. rad@cyberdude.com http://www.netyaroze-europe.com/~radpsx Anthony Ross wrote in message ... >Hi there >I'm using the example program 4 in chapter 7 of the tutorial as a basis >for getting a tiled background going but I cant get the InitBG() >function to give me a different coloured background. > >i.e. Changing the code.... > > bg_data.r = 0x80; > bg_data.g = 0x80; > bg_data.b = 0x80; > >in InitBG() to > > bg_data.r = 0; > bg_data.g = 0; > bg_data.b = 0; > >Has no effect. > > >Please help! > > >------------------------------------ >Anthony Ross