65 lines
2.7 KiB
HTML
65 lines
2.7 KiB
HTML
|
<HTML>
|
||
|
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
|
||
|
<BODY>
|
||
|
|
||
|
<A HREF="ng23171.html">[<<Previous Entry]</A>
|
||
|
<A HREF="ng320.html">[^^Up^^]</A>
|
||
|
<A HREF="ng23b74.html">[Next Entry>>]</A>
|
||
|
<A HREF="menu.html" >[Menu]</A>
|
||
|
<A HREF="info.html">[About The Guide]</A>
|
||
|
<HR>
|
||
|
<PRE>
|
||
|
<B>PALETTE USING Change Many Colors in the Palette</B>
|
||
|
|
||
|
<B>PALETTE</B> <B>USING</B> <U>intarray</U> (<U>arrayindex</U>)
|
||
|
|
||
|
Changes many colors in the palette in a single statement. This
|
||
|
statement can be used only with the Enhanced Graphics Adapter (EGA).
|
||
|
|
||
|
<U>intarray</U> An integer array that containing the new colors in the
|
||
|
palette. The array must consist of at least 16 elements.
|
||
|
|
||
|
<U>arrayindex</U> The starting index of <U>intarray</U> of where the new colors
|
||
|
begin. Most of the time this value will be 0.
|
||
|
|
||
|
<B> Attribute and Color Ranges</B>
|
||
|
|
||
|
<U>Mode</U> <U>Monitor</U> <U>Attribute</U> <U>Color</U>
|
||
|
0 Mono/MDA N/A N/A
|
||
|
Mono/EGA 0-15 0-2
|
||
|
Color/CGA N/A 0-31
|
||
|
Color/EGA 0-31 0-15
|
||
|
1 Color/CGA N/A 0-3
|
||
|
Color/EGA 0-3 0-15
|
||
|
2 Color/CGA N/A 0-1
|
||
|
Color/EGA 0-1 0-15
|
||
|
7 Color/EGA 0-15 0-15
|
||
|
8 Color/EGA 0-15 0-15
|
||
|
9 EGA (64K) 0-3 0-15
|
||
|
EGA (>64K) 0-15 0-63
|
||
|
10 Mono/EGA 0-3 0-8
|
||
|
|
||
|
--------------------------------------------------------------------------
|
||
|
|
||
|
<B> </B><B>Notes:</B> If the value of an array entry is -1, then the paired
|
||
|
attribute is not affected. Any other negative value is
|
||
|
illegal.
|
||
|
|
||
|
Changing the palette will affect the current screen colors
|
||
|
immediately. Text or graphics on the screen will not be
|
||
|
destroyed.
|
||
|
|
||
|
</PRE>
|
||
|
<HR>
|
||
|
<B>See Also:</B>
|
||
|
<A HREF="ng86fb.html">COLOR</A>
|
||
|
<A HREF="nge5df.html">DRAW</A>
|
||
|
<A HREF="ng23171.html">PALETTE</A>
|
||
|
<A HREF="ng2c723.html">SCREEN (Statement)</A>
|
||
|
<HR>
|
||
|
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
|
||
|
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
|
||
|
<HR>
|
||
|
</BODY>
|
||
|
</HTML>
|