From: "Andrew R. Gillett" Newsgroups: comp.os.msdos.djgpp Subject: Re: using textout to output the RGB of a color (allegro) Date: Sat, 16 Sep 2000 00:49:47 +0100 Organization: www.release-dates.co.uk Lines: 21 Message-ID: References: NNTP-Posting-Host: modem-6.banded-shark.dialup.pol.co.uk X-Trace: newsg1.svr.pol.co.uk 969061804 12766 62.136.226.6 (15 Sep 2000 23:50:04 GMT) NNTP-Posting-Date: 15 Sep 2000 23:50:04 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: MicroPlanet Gravity v2.30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In comp.os.msdos.djgpp, a Peirano wrote: > HELP USING ALLEGRO > > Hi i'm fairly new to programming with Djgpp and C++ but I was wondering if > there was a way of printing out the RGB of a colour using the textout > function. > > ie: > use the get_color() function to get the colour > and then use the textout to output the RGB to see the values? RGB my_rgb = get_color(source_x, source_y); textprintf (screen, font, dest_x, dest_y, text_colour, "%d,%d,%d", my_rgb.r, my_rgb.g, my_rgb.b); -- Andrew Gillett http://argnet.fatal-design.com/ ICQ: See homepage UK videogame release dates at: http://www.release-dates.co.uk/