Thanks! I guess those sources were right. Well, here are the values:

by ComputerGhost (Login ComputerGhost)
R

 

/**
 * @brief An enumeration of common colors
 */

enum
{
    BLACK = 0x000000, 
BLUE = 0x0000A8, 
GREEN = 0x00A800, 
CYAN = 0x00A8A8, 
RED = 0xA80000, 
MAGENTA = 0xA800A8, 
BROWN = 0xA85400, 
GRAY = 0xA8A8A8, 
DARK_GRAY = 0x545454, 
BRIGHT_BLUE = 0x5454FC, 
BRIGHT_GREEN = 0x54FC54, 
BRIGHT_CYAN = 0x54FCFC, 
BRIGHT_RED = 0xFC5454, 
BRIGHT_MAGENTA = 0xFC54FC, 
YELLOW = 0xFCFC54, 
WHITE = 0xFCFCFC
};

And it's great to see that the QBasic Forum is still as speedy as ever for responses!


P.S. Sorry for the messy code. My code to HTML converter doesn't seem to work on Network54, so we're stuck with ugliness. sad.gif



    
This message has been edited by ComputerGhost on Jun 19, 2012 7:14 AM

Posted on Jun 19, 2012, 7:13 AM

Respond to this message   

Return to Index

Response TitleAuthor and Date
BTW, the leading byte is not for brightnessClippy on Jun 19
your numbers are slightly off...Michael Calkins on Jul 14
 Re: your numbers are slightly off...Vince on Dec 10
  For color intensity values 0 to 63 multiply by 4 for 0 to 255Clippy on Dec 10

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement