1. graphics.e suggestion from a long lost friend

Hello Euphorian type people!

I was digging through some old files and found something that gave me the
urge to post a hit-and-run message to the old EUForum :D

Without further ado here's an interesting replacement for the colour name
definitions in graphics.e:

-- COLOR values -- for characters and pixels
constant
	BRIGHT = 8
global constant
	BLACK = 0,  -- in graphics modes this is "transparent"

	RED = 4 - 3*(platform() = LINUX),
        GREEN = 2,
        BLUE = 5 - RED,

        CYAN = GREEN + BLUE,
        MAGENTA = RED + BLUE,
        BROWN = RED + GREEN,

        WHITE = RED + GREEN + BLUE,

	GRAY = BRIGHT+BLACK,

	BRIGHT_BLUE = BRIGHT+BLUE,
	BRIGHT_GREEN = BRIGHT+GREEN,
	BRIGHT_RED = BRIGHT+RED,

	BRIGHT_CYAN = BRIGHT+CYAN,
	BRIGHT_MAGENTA = BRIGHT+MAGENTA,
	YELLOW = BRIGHT+BROWN,

	BRIGHT_WHITE = BRIGHT+WHITE

global constant BLINKING = 16  -- add to color to get blinking text


I don't know whether this idea has been suggested before, but like I say,
I found it in my old files and thought that someone in the Euphoria world
might find it interesting. :)

Nostalgically,
Carl W.

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu