mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-29 00:36:32 +00:00
120 lines
17 KiB
HTML
Executable file
120 lines
17 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.07">
|
|
<style type="text/css">
|
|
body {background-color:#1f1f1f;}
|
|
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
|
|
.cF1{color:#4f84a6;background-color:#1f1f1f;}
|
|
.cF2{color:#73a255;background-color:#1f1f1f;}
|
|
.cF3{color:#297582;background-color:#1f1f1f;}
|
|
.cF4{color:#b34f4b;background-color:#1f1f1f;}
|
|
.cF5{color:#8a52c3;background-color:#1f1f1f;}
|
|
.cF6{color:#b7822f;background-color:#1f1f1f;}
|
|
.cF7{color:#444444;background-color:#1f1f1f;}
|
|
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
|
|
.cF9{color:#94bfde;background-color:#1f1f1f;}
|
|
.cFA{color:#a1ce97;background-color:#1f1f1f;}
|
|
.cFB{color:#6db4be;background-color:#1f1f1f;}
|
|
.cFC{color:#e88e88;background-color:#1f1f1f;}
|
|
.cFD{color:#ca94e8;background-color:#1f1f1f;}
|
|
.cFE{color:#d4b475;background-color:#1f1f1f;}
|
|
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
|
|
</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>0x4A4A4A</span><span class=cF0>, </span><span class=cFE>0x6B6B6B</span><span class=cF0>, </span><span class=cFE>0x6F6F6F</span><span class=cF0>, </span><span class=cFE>0x626262</span><span class=cF0>, </span><span class=cFE>0x696969</span><span class=cF0>, </span><span class=cFE>0x868686</span><span class=cF0>, </span><span class=cFE>0xB5B5B5</span><span class=cF0>,
|
|
<a name="l32"></a> </span><span class=cFE>0x565656</span><span class=cF0>, </span><span class=cFE>0x8B8B8B</span><span class=cF0>, </span><span class=cFE>0xACACAC</span><span class=cF0>, </span><span class=cFE>0x878787</span><span class=cF0>, </span><span class=cFE>0x919191</span><span class=cF0>, </span><span class=cFE>0x8F8F8F</span><span class=cF0>, </span><span class=cFE>0xADADAD</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></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l43"></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="l44"></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="l45"></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="l46"></a>};
|
|
<a name="l47"></a>
|
|
<a name="l48"></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="l49"></a>{</span><span class=cF2>//Activate Dark palette.</span><span class=cF0>
|
|
<a name="l50"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr_palette_dark</span><span class=cF0>);
|
|
<a name="l51"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l52"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l53"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetDark</span><span class=cF0>;
|
|
<a name="l54"></a> </span><span class=cF2>//*(drv_text_attr(U8 *) + 1) = BROWN;</span><span class=cF0>
|
|
<a name="l55"></a>}
|
|
<a name="l56"></a></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l57"></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="l58"></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="l59"></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="l60"></a>};
|
|
<a name="l61"></a>
|
|
<a name="l62"></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="l63"></a>{</span><span class=cF2>//Activate Light palette.</span><span class=cF0>
|
|
<a name="l64"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr_palette_light</span><span class=cF0>);
|
|
<a name="l65"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l66"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l67"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetLight</span><span class=cF0>;
|
|
<a name="l68"></a>}
|
|
<a name="l69"></a></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l70"></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="l71"></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="l72"></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="l73"></a>};
|
|
<a name="l74"></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="l75"></a>{</span><span class=cF2>//Activate Slate palette.</span><span class=cF0>
|
|
<a name="l76"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr_palette_slate</span><span class=cF0>);
|
|
<a name="l77"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l78"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l79"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetSlate</span><span class=cF0>;
|
|
<a name="l80"></a>}
|
|
<a name="l81"></a></span><span class=cF2>//********************************************************************************</span><span class=cF0>
|
|
<a name="l82"></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_commander</span><span class=cF0>[</span><span class=cF3>COLORS_NUM</span><span class=cF0>] = {
|
|
<a name="l83"></a> </span><span class=cFE>0xFFFFFF</span><span class=cF0>, </span><span class=cFE>0x867ADE</span><span class=cF0>, </span><span class=cFE>0x00CC55</span><span class=cF0>, </span><span class=cFE>0x5A878B</span><span class=cF0>, </span><span class=cFE>0xB80000</span><span class=cF0>, </span><span class=cFE>0xCC44CC</span><span class=cF0>, </span><span class=cFE>0xDD8855</span><span class=cF0>, </span><span class=cFE>0xBBBBBB</span><span class=cF0>,
|
|
<a name="l84"></a> </span><span class=cFE>0x777777</span><span class=cF0>, </span><span class=cFE>0x0088FF</span><span class=cF0>, </span><span class=cFE>0xAAFF66</span><span class=cF0>, </span><span class=cFE>0xAAFFEE</span><span class=cF0>, </span><span class=cFE>0xFF7777</span><span class=cF0>, </span><span class=cFE>0xCA94E8</span><span class=cF0>, </span><span class=cFE>0xEEEE77</span><span class=cF0>, </span><span class=cFE>0x483AAA</span><span class=cF0>
|
|
<a name="l85"></a>};
|
|
<a name="l86"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PaletteSetCommander</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="l87"></a>{</span><span class=cF2>//Activate Slate palette.</span><span class=cF0>
|
|
<a name="l88"></a> </span><span class=cF5>GrPaletteSet</span><span class=cF0>(</span><span class=cFB>gr_palette_commander</span><span class=cF0>);
|
|
<a name="l89"></a> </span><span class=cF5>LFBFlush</span><span class=cF0>;
|
|
<a name="l90"></a> </span><span class=cF1>if</span><span class=cF0> (persistent)
|
|
<a name="l91"></a> </span><span class=cFB>fp_set_std_palette</span><span class=cF0> = &</span><span class=cF5>PaletteSetCommander</span><span class=cF0>;
|
|
<a name="l92"></a>}</span></pre></body>
|
|
</html>
|