Re: Euphoria Decimal Colour Codes

new topic     » goto parent     » topic index » view thread      » older message » newer message

The colors depend on the used Operative system.

On Eu3.1 include/graphics.e had this constans for text mode.

 
global constant  
	 BLACK = 0,  -- in graphics modes this is "transparent" 
	 GREEN = 2, 
	 MAGENTA = 5, 
	 WHITE = 7, 
	 GRAY  = 8, 
	 BRIGHT_GREEN = 10, 
	 BRIGHT_MAGENTA = 13, 
	 BRIGHT_WHITE = 15 
 
global integer  
	 BLUE, CYAN, RED, BROWN, BRIGHT_BLUE, BRIGHT_CYAN, BRIGHT_RED, YELLOW 
 
 
if platform() = LINUX then 
 
    BLUE  = 4 
    CYAN =  6 
    RED   = 1 
    BROWN = 3 
    BRIGHT_BLUE = 12 
    BRIGHT_CYAN = 14 
    BRIGHT_RED = 9 
    YELLOW = 11 
 
else 
 
    BLUE  = 1 
    CYAN =  3 
    RED   = 4 
    BROWN = 6 
    BRIGHT_BLUE = 9 
    BRIGHT_CYAN = 11 
    BRIGHT_RED = 12 
    YELLOW = 14 
 
end if 
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu