mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-28 16:26:35 +00:00
dbf8647d59
Added top & right borders to RawDr. Improved spacing in some debug and compiler reporting. Fixed RawPutChar and EdLite tab width. Fixed Ui missing '0x' prefix syntax highlighter bug. Added 32BitPaint demo.
191 lines
12 KiB
HTML
Executable file
191 lines
12 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V0.08">
|
|
<style type="text/css">
|
|
body {background-color:#000000;}
|
|
.c05{color:#75507b;background-color:#ffffff;}
|
|
.cF0{color:#ffffff;background-color:#000000;}
|
|
.cF1{color:#3465a4;background-color:#000000;}
|
|
.cF2{color:#4e9a06;background-color:#000000;}
|
|
.cF3{color:#06989a;background-color:#000000;}
|
|
.cF4{color:#a24444;background-color:#000000;}
|
|
.cF5{color:#75507b;background-color:#000000;}
|
|
.cF6{color:#ce982f;background-color:#000000;}
|
|
.cF7{color:#bcc0b9;background-color:#000000;}
|
|
.cF8{color:#555753;background-color:#000000;}
|
|
.cF9{color:#729fcf;background-color:#000000;}
|
|
.cFA{color:#82bc49;background-color:#000000;}
|
|
.cFB{color:#34e2e2;background-color:#000000;}
|
|
.cFC{color:#ac3535;background-color:#000000;}
|
|
.cFD{color:#ad7fa8;background-color:#000000;}
|
|
.cFE{color:#fce94f;background-color:#000000;}
|
|
.cFF{color:#000000;background-color:#000000;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre style="font-family:monospace;font-size:12pt">
|
|
<a name="l1"></a><span class=c05>/* Graphics Not Rendered in HTML */</span><span class=cF0>
|
|
<a name="l2"></a>
|
|
<a name="l3"></a>
|
|
<a name="l4"></a>
|
|
<a name="l5"></a>
|
|
<a name="l6"></a>
|
|
<a name="l7"></a>
|
|
<a name="l8"></a>
|
|
<a name="l9"></a>
|
|
<a name="l10"></a>
|
|
<a name="l11"></a>
|
|
<a name="l12"></a>
|
|
<a name="l13"></a>
|
|
<a name="l14"></a>
|
|
<a name="l15"></a>
|
|
<a name="l16"></a>
|
|
<a name="l17"></a>
|
|
<a name="l18"></a>
|
|
<a name="l19"></a>
|
|
<a name="l20"></a>
|
|
<a name="l21"></a>
|
|
<a name="l22"></a>
|
|
<a name="l23"></a>
|
|
<a name="l24"></a>
|
|
<a name="l25"></a>
|
|
<a name="l26"></a>
|
|
<a name="l27"></a>
|
|
<a name="l28"></a>
|
|
<a name="l29"></a>
|
|
<a name="l30"></a>
|
|
<a name="l31"></a>
|
|
<a name="l32"></a>
|
|
<a name="l33"></a>
|
|
<a name="l34"></a>
|
|
<a name="l35"></a>
|
|
<a name="l36"></a>
|
|
<a name="l37"></a>
|
|
<a name="l38"></a>
|
|
<a name="l39"></a>
|
|
<a name="l40"></a>
|
|
<a name="l41"></a>
|
|
<a name="l42"></a>
|
|
<a name="l43"></a>
|
|
<a name="l44"></a>
|
|
<a name="l45"></a>
|
|
<a name="l46"></a>
|
|
<a name="l47"></a>
|
|
<a name="l48"></a>
|
|
<a name="l49"></a>
|
|
<a name="l50"></a>
|
|
<a name="l51"></a>
|
|
<a name="l52"></a>
|
|
<a name="l53"></a>
|
|
<a name="l54"></a>
|
|
<a name="l55"></a>
|
|
<a name="l56"></a>
|
|
<a name="l57"></a>
|
|
<a name="l58"></a>
|
|
<a name="l59"></a>
|
|
<a name="l60"></a>
|
|
<a name="l61"></a></span><span class=cF1>U8</span><span class=cF0> *poem = </span><span class=cF6>
|
|
<a name="l62"></a>
|
|
<a name="l63"></a>"To a Waterfowl
|
|
<a name="l64"></a>by William Cullen Bryant
|
|
<a name="l65"></a>
|
|
<a name="l66"></a>Whither, 'midst falling dew,
|
|
<a name="l67"></a>While glow the heavens with the last steps of day,
|
|
<a name="l68"></a>Far, through their rosy depths, dost thou pursue
|
|
<a name="l69"></a>Thy solitary way?
|
|
<a name="l70"></a>
|
|
<a name="l71"></a>Vainly the fowler's eye
|
|
<a name="l72"></a>Might mark thy distant flight to do thee wrong,
|
|
<a name="l73"></a>As, darkly painted on the crimson sky,
|
|
<a name="l74"></a>Thy figure floats along.
|
|
<a name="l75"></a>
|
|
<a name="l76"></a>Seek'st thou the plashy brink
|
|
<a name="l77"></a>Of weedy lake, or marge of river wide,
|
|
<a name="l78"></a>Or where the rocking billows rise and sink
|
|
<a name="l79"></a>On the chafed ocean side?
|
|
<a name="l80"></a>
|
|
<a name="l81"></a>There is a Power whose care
|
|
<a name="l82"></a>Teaches thy way along that pathless coast,--
|
|
<a name="l83"></a>The desert and illimitable air,--
|
|
<a name="l84"></a>Lone wandering, but not lost.
|
|
<a name="l85"></a>
|
|
<a name="l86"></a>All day thy wings have fann'd
|
|
<a name="l87"></a>At that far height, the cold thin atmosphere:
|
|
<a name="l88"></a>Yet stoop not, weary, to the welcome land,
|
|
<a name="l89"></a>Though the dark night is near.
|
|
<a name="l90"></a>
|
|
<a name="l91"></a>And soon that toil shall end,
|
|
<a name="l92"></a>Soon shalt thou find a summer home, and rest,
|
|
<a name="l93"></a>And scream among thy fellows; reed shall bend
|
|
<a name="l94"></a>Soon o'er thy sheltered nest.
|
|
<a name="l95"></a>
|
|
<a name="l96"></a>Thou'rt gone, the abyss of heaven
|
|
<a name="l97"></a>Hath swallowed up thy form; yet, on my heart
|
|
<a name="l98"></a>Deeply hath sunk the lesson thou hast given,
|
|
<a name="l99"></a>And shall not soon depart.
|
|
<a name="l100"></a>
|
|
<a name="l101"></a>He, who, from zone to zone,
|
|
<a name="l102"></a>Guides through the boundless sky thy certain flight,
|
|
<a name="l103"></a>In the long way that I must tread alone,
|
|
<a name="l104"></a>Will lead my steps aright.
|
|
<a name="l105"></a>"</span><span class=cF0>;
|
|
<a name="l106"></a>
|
|
<a name="l107"></a>#</span><span class=cF1>define</span><span class=cF0> POEM_COLS </span><span class=cFE>53</span><span class=cF0>
|
|
<a name="l108"></a>#</span><span class=cF1>define</span><span class=cF0> POEM_TIME </span><span class=cFE>65</span><span class=cF0>.</span><span class=cFE>0</span><span class=cF0>
|
|
<a name="l109"></a>
|
|
<a name="l110"></a></span><span class=cF1>F64</span><span class=cF0> t0;
|
|
<a name="l111"></a>
|
|
<a name="l112"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DrawIt</span><span class=cF0>(</span><span class=cF9>CTask</span><span class=cF0> *task,</span><span class=cF9>CDC</span><span class=cF0> *dc)
|
|
<a name="l113"></a>{
|
|
<a name="l114"></a> </span><span class=cF9>I64</span><span class=cF0> w = task->pix_width, h = task->pix_height;
|
|
<a name="l115"></a>
|
|
<a name="l116"></a> </span><span class=cF1>F64</span><span class=cF0> t = </span><span class=cFE>1</span><span class=cF0>.</span><span class=cFE>04</span><span class=cF0> - (</span><span class=cFE>0</span><span class=cF0>.</span><span class=cFE>35</span><span class=cF0> + </span><span class=cFE>0</span><span class=cF0>.</span><span class=cFE>65</span><span class=cF0> * </span><span class=cF5>Caw</span><span class=cF7>(</span><span class=cF5>tS</span><span class=cF0> - t0, </span><span class=cFE>20</span><span class=cF7>)</span><span class=cF0>) ` </span><span class=cFE>3</span><span class=cF0>, s = </span><span class=cFE>1</span><span class=cF0>.</span><span class=cFE>0</span><span class=cF0> - </span><span class=cFE>0</span><span class=cF0>.</span><span class=cFE>5</span><span class=cF0> * t,
|
|
<a name="l117"></a> x = w * t, y = h * (</span><span class=cFE>0</span><span class=cF0>.</span><span class=cFE>35</span><span class=cF0> - .</span><span class=cFE>1</span><span class=cF0> * t);
|
|
<a name="l118"></a>
|
|
<a name="l119"></a> dc->color = </span><span class=cF3>WHITE</span><span class=cF0>;
|
|
<a name="l120"></a> </span><span class=cF5>GrPrint</span><span class=cF0>(dc, w >> </span><span class=cFE>1</span><span class=cF0> - </span><span class=cF7>(</span><span class=cF0>POEM_COLS * </span><span class=cF3>FONT_WIDTH</span><span class=cF7>)</span><span class=cF0> >> </span><span class=cFE>1</span><span class=cF0>, </span><span class=cF5>Caw</span><span class=cF7>(</span><span class=cF5>tS</span><span class=cF0> - t0, POEM_TIME</span><span class=cF7>)</span><span class=cF0> * </span><span class=cF7>(</span><span class=cF0>h - </span><span class=cFE>3</span><span class=cF0> * </span><span class=cF3>FONT_HEIGHT</span><span class=cF7>)</span><span class=cF0>, poem);
|
|
<a name="l121"></a> dc->color = </span><span class=cF3>BLACK</span><span class=cF0>;
|
|
<a name="l122"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, x, y, x - </span><span class=cFE>8</span><span class=cF0> * s, y + </span><span class=cFE>6</span><span class=cF0> * s * </span><span class=cF5>FullTri</span><span class=cF7>(</span><span class=cF5>tS</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>.</span><span class=cFE>4</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l123"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, x, y, x + </span><span class=cFE>8</span><span class=cF0> * s, y + </span><span class=cFE>6</span><span class=cF0> * s * </span><span class=cF5>FullTri</span><span class=cF7>(</span><span class=cF5>tS</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>.</span><span class=cFE>4</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l124"></a>}
|
|
<a name="l125"></a>
|
|
<a name="l126"></a></span><span class=cF1>U0</span><span class=cF0> SongTask(</span><span class=cF9>I64</span><span class=cF0>)
|
|
<a name="l127"></a>{</span><span class=cF2>//Song by Terry A. Davis</span><span class=cF0>
|
|
<a name="l128"></a> </span><span class=cF2>//This specifies a callback routine</span><span class=cF0>
|
|
<a name="l129"></a> </span><span class=cF2>//to be called when the task dies.</span><span class=cF0>
|
|
<a name="l130"></a> </span><span class=cF5>Fs</span><span class=cF0>->task_end_cb = &</span><span class=cF5>SoundTaskEndCB</span><span class=cF0>;
|
|
<a name="l131"></a> </span><span class=cF5>MusicSettingsReset</span><span class=cF0>;
|
|
<a name="l132"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l133"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l134"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>"5eEDC4B5C4B5C4BA5qReEDC4B5C"</span><span class=cF0>);
|
|
<a name="l135"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>"4B5C4BA5qReFEDEDEDC4qB"</span><span class=cF0>);
|
|
<a name="l136"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>"5ReFEDEDEDC4BqR"</span><span class=cF0>);
|
|
<a name="l137"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l138"></a>}
|
|
<a name="l139"></a>
|
|
<a name="l140"></a></span><span class=cF1>U0</span><span class=cF0> WaterFowl()
|
|
<a name="l141"></a>{
|
|
<a name="l142"></a> </span><span class=cF5>SettingsPush</span><span class=cF0>; </span><span class=cF2>//See </span><a href="https://tomawezome.github.io/ZealOS/System/TaskSettings.CC.html#l3"><span class=cF4>SettingsPush</span></a><span class=cF0>
|
|
<a name="l143"></a> </span><span class=cF5>Fs</span><span class=cF0>->song_task = </span><span class=cF5>Spawn</span><span class=cF0>(&SongTask, </span><span class=cF3>NULL</span><span class=cF0>, </span><span class=cF6>"Song"</span><span class=cF0>,, </span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l144"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>;
|
|
<a name="l145"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>WinBorder;</span><span class=cF0>
|
|
<a name="l146"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>WinMax;</span><span class=cF0>
|
|
<a name="l147"></a> </span><span class=cF5>WinVert</span><span class=cF0>(</span><span class=cFE>1</span><span class=cF0>, </span><span class=cFE>60</span><span class=cF0>);
|
|
<a name="l148"></a> </span><span class=cF5>WinHorz</span><span class=cF0>(</span><span class=cFE>1</span><span class=cF0>, </span><span class=cFE>80</span><span class=cF0>);
|
|
<a name="l149"></a> </span><span class=cF5>DocScroll</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
|
<a name="l150"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
|
|
<a name="l151"></a> t0 = </span><span class=cF5>tS</span><span class=cF0>;
|
|
<a name="l152"></a> </span><span class=cF5>Fs</span><span class=cF0>->draw_it = &</span><span class=cF5>DrawIt</span><span class=cF0>;
|
|
<a name="l153"></a> </span><span class=cF5>Sprite</span><span class=cF0>(</span><span class=cFA><1></span><span class=cF0>);
|
|
<a name="l154"></a> </span><span class=cF6>"%h*c"</span><span class=cF0>, </span><span class=cF3>TEXT_ROWS</span><span class=cF0> - </span><span class=cFE>2</span><span class=cF0>, </span><span class=cF6>'\n'</span><span class=cF0>;
|
|
<a name="l155"></a> </span><span class=cF5>DocTop</span><span class=cF0>;
|
|
<a name="l156"></a> </span><span class=cF5>CharGet</span><span class=cF0>;
|
|
<a name="l157"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
|
|
<a name="l158"></a> </span><span class=cF5>SettingsPop</span><span class=cF0>;
|
|
<a name="l159"></a>}
|
|
<a name="l160"></a>
|
|
<a name="l161"></a>WaterFowl;
|
|
</span></pre></body>
|
|
</html>
|