Background Intensity

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

Read the following comments from the file intense.e.

As you see I did make one change that makes NO
difference in how the program runs.  I simply
eliminated a redundant include.  Euphoria automatically
does this, but I feel that this MAY save time !?

I will refer to these comments at the end of this
message.

-- NOTE: Slightly altered by Lucius L. Hilley III
--    INCLUDES:
--      Took out include graphics.e
--      graphics.e is included by image.e

-- intense.e v1.6
-- Use high-intensity text & background colors
-- David Cuny 1/6/97
-- Internet:  dcuny at hw1.cahwnet.gov
--
-- Thanks to Tom Riso for loaning me his ROM BIOS call book, and then
-- walking me through the process.
--
-- Euphoria does not allow direct access to high-intensity video, so
-- this is a bit of a kludge. But it gets the job done.
--
-- There are two problems with getting high-intensity colors: getting
them
-- to the screen, and displaying them as intense, instead of blinking.
--
-- The first is a problem because Euphoria only lets you set the
foreground
-- color with an extended attribute (why is this, Robert?). The second is
-- that your PC will display extended colors as blinking, not intense. If
-- you want intense colors, you've got to do a BIOS call.
--
--<BIOS CODE HERE>--
--
-- Next, we write the text to the screen. We can't do this directly with
-- fore_color and bk_color (aargh!), so we have to resort to getting it
-- directly to the screen. It's simplest to just poke it to the screen.
--
--
-- Remember that "blinking green" is the same as "intense green"; it's
all
-- a matter how the machine interprets the numbers.

Blinking green and Intense green are the same CORRECT!

When this code was written he may not have been able to access
blinking and intensity.  I don't know !!!

But now with Euphoria Version 1.5 I know that you can.

It works as follows:

foreground = 0 to 8
background = 0 to 8
BRIGHT = 8
BLINKING = 16
BK_BRIGHT = 16
NOW

Take the colors WHITE and BLUE

Foreground = WHITE
Background = BLUE

{BRIGHT+BLINKING+WHITE+, BLUE} is equal to
{BRIGHT+WHITE+BK_BRIGHT, BLUE}

Normally Intense Blinking White on Blue
but with intense background on
Bright White on Bright Blue.

--Lucius Lamar Hilley III
--  E-mail at luciuslhilleyiii at juno.com
--  I support transferring of files less than 60K.
--  I can Decode both UU and Base64 format.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu