1. Euphoria Decimal Colour Codes
- Posted by Selgor Jan 22, 2009
- 1654 views
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
2. Re: Euphoria Decimal Colour Codes
- Posted by doncole2009 Jan 22, 2009
- 1663 views
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
3. Re: Euphoria Decimal Colour Codes
- Posted by DanM Jan 22, 2009
- 1692 views
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
4. Re: Euphoria Decimal Colour Codes
- Posted by achury Jan 23, 2009
- 1710 views
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