mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-28 16:26:35 +00:00
109 lines
15 KiB
HTML
Executable file
109 lines
15 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V1.00">
|
|
<style type="text/css">
|
|
body {background-color:#fef1f0;}
|
|
.cF0{color:#000000;background-color:#fef1f0;}
|
|
.cF1{color:#0148a4;background-color:#fef1f0;}
|
|
.cF2{color:#3b7901;background-color:#fef1f0;}
|
|
.cF3{color:#057c7e;background-color:#fef1f0;}
|
|
.cF4{color:#bb2020;background-color:#fef1f0;}
|
|
.cF5{color:#9e42ae;background-color:#fef1f0;}
|
|
.cF6{color:#b57901;background-color:#fef1f0;}
|
|
.cF7{color:#b2b6af;background-color:#fef1f0;}
|
|
.cF8{color:#555753;background-color:#fef1f0;}
|
|
.cF9{color:#678fbb;background-color:#fef1f0;}
|
|
.cFA{color:#82bc49;background-color:#fef1f0;}
|
|
.cFB{color:#0097a2;background-color:#fef1f0;}
|
|
.cFC{color:#e26a6a;background-color:#fef1f0;}
|
|
.cFD{color:#c671bc;background-color:#fef1f0;}
|
|
.cFE{color:#c7ab00;background-color:#fef1f0;}
|
|
.cFF{color:#fef1f0;background-color:#fef1f0;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre style="font-family:monospace;font-size:12pt">
|
|
<a name="l1"></a><span class=cF0>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"Graphics/Color"</span><span class=cF0>
|
|
<a name="l2"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> </span><span class=cFB>gr_rainbow_10</span><span class=cF0>[</span><span class=cFE>10</span><span class=cF0>] = {</span><span class=cF3>BLACK</span><span class=cF0>, </span><span class=cF3>BROWN</span><span class=cF0>, </span><span class=cF3>RED</span><span class=cF0>, </span><span class=cF3>LTRED</span><span class=cF0>, </span><span class=cF3>YELLOW</span><span class=cF0>, </span><span class=cF3>GREEN</span><span class=cF0>, </span><span class=cF3>BLUE</span><span class=cF0>, </span><span class=cF3>PURPLE</span><span class=cF0>, </span><span class=cF3>LTGRAY</span><span class=cF0>, </span><span class=cF3>WHITE</span><span class=cF0>};
|
|
<a name="l3"></a>
|
|
<a name="l4"></a></span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>"ST_RAINBOW_10"</span><span class=cF0>, </span><span class=cF6>"BLACK\0BROWN\0RED\0LTRED\0YELLOW\0GREEN\0BLUE\0PURPLE\0LTGRAY\0WHITE\0"</span><span class=cF0>);
|
|
<a name="l5"></a>
|
|
<a name="l6"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>GrPaletteGet</span><span class=cF0>(</span><span class=cF9>CBGR24</span><span class=cF0> *bgr24)
|
|
<a name="l7"></a>{</span><span class=cF2>//16 colors</span><span class=cF0>
|
|
<a name="l8"></a> </span><span class=cF5>MemCopy</span><span class=cF0>(bgr24, &</span><span class=cFB>gr_palette</span><span class=cF0>, </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CBGR24</span><span class=cF7>)</span><span class=cF0> * </span><span class=cF3>COLORS_NUM</span><span class=cF0>);
|
|
<a name="l9"></a>}
|
|
<a name="l10"></a>
|
|
<a name="l11"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cF9>CBGR24</span><span class=cF0> *bgr24)
|
|
<a name="l12"></a>{</span><span class=cF2>//16 colors</span><span class=cF0>
|
|
<a name="l13"></a> </span><span class=cF5>MemCopy</span><span class=cF0>(&</span><span class=cFB>gr_palette</span><span class=cF0>, bgr24, </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CBGR24</span><span class=cF7>)</span><span class=cF0> * </span><span class=cF3>COLORS_NUM</span><span class=cF0>);
|
|
<a name="l14"></a>}
|
|
<a name="l15"></a>
|
|
<a name="l16"></a></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l17"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>CBGR24</span><span class=cF0> </span><span class=cFB>gr32_palette_std</span><span class=cF0>[</span><span class=cF3>COLORS_NUM</span><span class=cF0>] = {
|
|
<a name="l18"></a> </span><span class=cFE>0x000000</span><span class=cF0>, </span><span class=cFE>0x0000AA</span><span class=cF0>, </span><span class=cFE>0x00AA00</span><span class=cF0>, </span><span class=cFE>0x00AAAA</span><span class=cF0>, </span><span class=cFE>0xAA0000</span><span class=cF0>, </span><span class=cFE>0xAA00AA</span><span class=cF0>, </span><span class=cFE>0xAA5500</span><span class=cF0>, </span><span class=cFE>0xAAAAAA</span><span class=cF0>,
|
|
<a name="l19"></a> </span><span class=cFE>0x555555</span><span class=cF0>, </span><span class=cFE>0x5555FF</span><span class=cF0>, </span><span class=cFE>0x55FF55</span><span class=cF0>, </span><span class=cFE>0x55FFFF</span><span class=cF0>, </span><span class=cFE>0xFF5555</span><span class=cF0>, </span><span class=cFE>0xFF55FF</span><span class=cF0>, </span><span class=cFE>0xFFFF55</span><span class=cF0>, </span><span class=cFE>0xFFFFFF</span><span class=cF0>
|
|
<a name="l20"></a>};
|
|
<a name="l21"></a>
|
|
<a name="l22"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PaletteSetStd</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> persistent=</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l23"></a>{</span><span class=cF2>//Activate std palette.</span><span class=cF0>
|
|
<a name="l24"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr32_palette_std</span><span class=cF0>);
|
|
<a name="l25"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l26"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l27"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetStd</span><span class=cF0>;
|
|
<a name="l28"></a>}
|
|
<a name="l29"></a></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l30"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>CBGR24</span><span class=cF0> </span><span class=cFB>gr_palette_gray</span><span class=cF0>[</span><span class=cF3>COLORS_NUM</span><span class=cF0>] = {
|
|
<a name="l31"></a> </span><span class=cFE>0x000000</span><span class=cF0>, </span><span class=cFE>0x111111</span><span class=cF0>, </span><span class=cFE>0x222222</span><span class=cF0>, </span><span class=cFE>0x333333</span><span class=cF0>, </span><span class=cFE>0x444444</span><span class=cF0>, </span><span class=cFE>0x555555</span><span class=cF0>, </span><span class=cFE>0x666666</span><span class=cF0>, </span><span class=cFE>0x777777</span><span class=cF0>,
|
|
<a name="l32"></a> </span><span class=cFE>0x888888</span><span class=cF0>, </span><span class=cFE>0x999999</span><span class=cF0>, </span><span class=cFE>0xAAAAAA</span><span class=cF0>, </span><span class=cFE>0xBBBBBB</span><span class=cF0>, </span><span class=cFE>0xCCCCCC</span><span class=cF0>, </span><span class=cFE>0xDDDDDD</span><span class=cF0>, </span><span class=cFE>0xEEEEEE</span><span class=cF0>, </span><span class=cFE>0xFFFFFF</span><span class=cF0>
|
|
<a name="l33"></a>};
|
|
<a name="l34"></a>
|
|
<a name="l35"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PaletteSetGray</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> persistent=</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l36"></a>{</span><span class=cF2>//Activate gray palette.</span><span class=cF0>
|
|
<a name="l37"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr_palette_gray</span><span class=cF0>);
|
|
<a name="l38"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l39"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l40"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetGray</span><span class=cF0>;
|
|
<a name="l41"></a>}
|
|
<a name="l42"></a>
|
|
<a name="l43"></a></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l44"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>CBGR24</span><span class=cF0> </span><span class=cFB>gr_palette_dark</span><span class=cF0>[</span><span class=cF3>COLORS_NUM</span><span class=cF0>] = {
|
|
<a name="l45"></a> </span><span class=cFE>0xFFFFFF</span><span class=cF0>, </span><span class=cFE>0x3465A4</span><span class=cF0>, </span><span class=cFE>0x4E9A06</span><span class=cF0>, </span><span class=cFE>0x06989A</span><span class=cF0>, </span><span class=cFE>0xA24444</span><span class=cF0>, </span><span class=cFE>0x9969A1</span><span class=cF0>, </span><span class=cFE>0xCE982F</span><span class=cF0>, </span><span class=cFE>0xBCC0B9</span><span class=cF0>,
|
|
<a name="l46"></a> </span><span class=cFE>0x555753</span><span class=cF0>, </span><span class=cFE>0x729FCF</span><span class=cF0>, </span><span class=cFE>0x82BC49</span><span class=cF0>, </span><span class=cFE>0x34E2E2</span><span class=cF0>, </span><span class=cFE>0xAC3535</span><span class=cF0>, </span><span class=cFE>0xC994C3</span><span class=cF0>, </span><span class=cFE>0xFCE94F</span><span class=cF0>, </span><span class=cFE>0x000000</span><span class=cF0>
|
|
<a name="l47"></a>};
|
|
<a name="l48"></a>
|
|
<a name="l49"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PaletteSetDark</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> persistent=</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l50"></a>{</span><span class=cF2>//Activate Dark palette.</span><span class=cF0>
|
|
<a name="l51"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr_palette_dark</span><span class=cF0>);
|
|
<a name="l52"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l53"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l54"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetDark</span><span class=cF0>;
|
|
<a name="l55"></a> </span><span class=cF2>//*(drv_text_attr(U8 *) + 1) = BROWN;</span><span class=cF0>
|
|
<a name="l56"></a>}
|
|
<a name="l57"></a></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l58"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>CBGR24</span><span class=cF0> </span><span class=cFB>gr_palette_light</span><span class=cF0>[</span><span class=cF3>COLORS_NUM</span><span class=cF0>] = {
|
|
<a name="l59"></a> </span><span class=cFE>0x000000</span><span class=cF0>, </span><span class=cFE>0x0148A4</span><span class=cF0>, </span><span class=cFE>0x3B7901</span><span class=cF0>, </span><span class=cFE>0x057C7E</span><span class=cF0>, </span><span class=cFE>0xBB2020</span><span class=cF0>, </span><span class=cFE>0x9E42AE</span><span class=cF0>, </span><span class=cFE>0xB57901</span><span class=cF0>, </span><span class=cFE>0xB2B6AF</span><span class=cF0>,
|
|
<a name="l60"></a> </span><span class=cFE>0x555753</span><span class=cF0>, </span><span class=cFE>0x678FBB</span><span class=cF0>, </span><span class=cFE>0x82BC49</span><span class=cF0>, </span><span class=cFE>0x0097A2</span><span class=cF0>, </span><span class=cFE>0xE26A6A</span><span class=cF0>, </span><span class=cFE>0xC671BC</span><span class=cF0>, </span><span class=cFE>0xC7AB00</span><span class=cF0>, </span><span class=cFE>0xFEF1F0</span><span class=cF0>
|
|
<a name="l61"></a>};
|
|
<a name="l62"></a>
|
|
<a name="l63"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PaletteSetLight</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> persistent=</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l64"></a>{</span><span class=cF2>//Activate Light palette.</span><span class=cF0>
|
|
<a name="l65"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr_palette_light</span><span class=cF0>);
|
|
<a name="l66"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l67"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l68"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetLight</span><span class=cF0>;
|
|
<a name="l69"></a>}
|
|
<a name="l70"></a></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l71"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>CBGR24</span><span class=cF0> </span><span class=cFB>gr_palette_slate</span><span class=cF0>[</span><span class=cF3>COLORS_NUM</span><span class=cF0>] = {
|
|
<a name="l72"></a> </span><span class=cFE>0xE3E3E3</span><span class=cF0>, </span><span class=cFE>0x4F84A6</span><span class=cF0>, </span><span class=cFE>0x73A255</span><span class=cF0>, </span><span class=cFE>0x297582</span><span class=cF0>, </span><span class=cFE>0xB34F4B</span><span class=cF0>, </span><span class=cFE>0x8A52C3</span><span class=cF0>, </span><span class=cFE>0xB7822F</span><span class=cF0>, </span><span class=cFE>0x444444</span><span class=cF0>,
|
|
<a name="l73"></a> </span><span class=cFE>0x6D6D6D</span><span class=cF0>, </span><span class=cFE>0x94BFDE</span><span class=cF0>, </span><span class=cFE>0xA1CE97</span><span class=cF0>, </span><span class=cFE>0x6DB4BE</span><span class=cF0>, </span><span class=cFE>0xE88E88</span><span class=cF0>, </span><span class=cFE>0xCA94E8</span><span class=cF0>, </span><span class=cFE>0xD4B475</span><span class=cF0>, </span><span class=cFE>0x1F1F1F</span><span class=cF0>
|
|
<a name="l74"></a>};
|
|
<a name="l75"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PaletteSetSlate</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> persistent=</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l76"></a>{</span><span class=cF2>//Activate Slate palette.</span><span class=cF0>
|
|
<a name="l77"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr_palette_slate</span><span class=cF0>);
|
|
<a name="l78"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l79"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l80"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetSlate</span><span class=cF0>;
|
|
<a name="l81"></a>}</span></pre></body>
|
|
</html>
|