1. Euphoria Decimal Colour Codes

Hi,

Can anyone tell me the Decimal Values for the

Colours Euphoria uses?

Or, where I can find a value for

Red, Green, Blue .... etc

in hex, octal, binary, decimal

Cheers,

Selgor

new topic     » topic index » view message » categorize

2. Re: Euphoria Decimal Colour Codes

Selgor said...

Hi,

Can anyone tell me the Decimal Values for the

Colours Euphoria uses?

Or, where I can find a value for

Red, Green, Blue .... etc

in hex, octal, binary, decimal

Cheers,

Selgor

Hello again Selgor,

Look in the RapidEuphoria Archives and download RGBView.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria Decimal Colour Codes

Selgor said...

Hi,

Can anyone tell me the Decimal Values for the

Colours Euphoria uses?

Or, where I can find a value for

Red, Green, Blue .... etc

in hex, octal, binary, decimal

Cheers,

Selgor

In "RunDemos.exw", there is a button marked "Constants". If you select "Colors" in its popup, there are some decimal rgb's listed.

Dan

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria Decimal Colour Codes

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 message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu