ZealOS/docs/Demo/Graphics/Elephant.CC.html
TomAwezome 923b700822 Change DVDImageWrite to use single buffer.
Add CAtapiWriteCmd for AHCIAtapiBlksWrite.
Remove AHCIAtapiSeek and AHCIAtapiFormat.
2021-08-15 02:23:46 -04:00

236 lines
10 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.16">
<style type="text/css">
body {background-color:#fef1f0;}
.cB0{color:#000000;background-color:#0097a2;}
.cE0{color:#000000;background-color:#c7ab00;}
.cEA{color:#82bc49;background-color:#c7ab00;}
.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=cF2>//Scroll Down</span><span class=cF0>
<a name="l2"></a></span><span class=cB0>
<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></span><span class=cE0>
<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></span><span class=cEA>
<a name="l61"></a>&lt;1&gt;/* Graphics Not Rendered in HTML */</span><span class=cE0>
<a name="l62"></a></span><span class=cB0>
<a name="l63"></a>
<a name="l64"></a>
<a name="l65"></a>
<a name="l66"></a>
<a name="l67"></a>
<a name="l68"></a>
<a name="l69"></a>
<a name="l70"></a>
<a name="l71"></a>
<a name="l72"></a>
<a name="l73"></a>
<a name="l74"></a>
<a name="l75"></a>
<a name="l76"></a>
<a name="l77"></a>
<a name="l78"></a>
<a name="l79"></a>
<a name="l80"></a>
<a name="l81"></a>
<a name="l82"></a>
<a name="l83"></a>
<a name="l84"></a>
<a name="l85"></a>
<a name="l86"></a>
<a name="l87"></a>
<a name="l88"></a>
<a name="l89"></a>
<a name="l90"></a>
<a name="l91"></a>
<a name="l92"></a>
<a name="l93"></a></span><span class=cE0>
<a name="l94"></a>
<a name="l95"></a>
<a name="l96"></a>
<a name="l97"></a>
<a name="l98"></a>
<a name="l99"></a>
<a name="l100"></a>
<a name="l101"></a>
<a name="l102"></a>
<a name="l103"></a>
<a name="l104"></a>
<a name="l105"></a>
<a name="l106"></a>
<a name="l107"></a>
<a name="l108"></a>
<a name="l109"></a>
<a name="l110"></a>
<a name="l111"></a>
<a name="l112"></a>
<a name="l113"></a>
<a name="l114"></a>
<a name="l115"></a>
<a name="l116"></a>
<a name="l117"></a>
<a name="l118"></a>
<a name="l119"></a>
<a name="l120"></a></span><span class=cEA>
<a name="l121"></a>&lt;2&gt;/* Graphics Not Rendered in HTML */</span><span class=cE0>
<a name="l122"></a>
<a name="l123"></a>
<a name="l124"></a>
<a name="l125"></a>
<a name="l126"></a>
<a name="l127"></a> </span><span class=cEA>&lt;3&gt;/* Graphics Not Rendered in HTML */</span><span class=cE0>
<a name="l128"></a>
<a name="l129"></a>
<a name="l130"></a>
<a name="l131"></a> </span><span class=cEA>&lt;4&gt;/* Graphics Not Rendered in HTML */</span><span class=cE0>
<a name="l132"></a>
<a name="l133"></a>
<a name="l134"></a>
<a name="l135"></a>
<a name="l136"></a>
<a name="l137"></a>
<a name="l138"></a>
<a name="l139"></a> </span><span class=cEA>&lt;5&gt;/* Graphics Not Rendered in HTML */</span><span class=cE0>
<a name="l140"></a>
<a name="l141"></a>
<a name="l142"></a>
<a name="l143"></a>
<a name="l144"></a>
<a name="l145"></a>
<a name="l146"></a>
<a name="l147"></a>
<a name="l148"></a>
<a name="l149"></a>
<a name="l150"></a>
<a name="l151"></a>
<a name="l152"></a>
<a name="l153"></a>
<a name="l154"></a>
<a name="l155"></a>
<a name="l156"></a>
<a name="l157"></a>
<a name="l158"></a>
<a name="l159"></a>
<a name="l160"></a> </span><span class=cEA>&lt;6&gt;/* Graphics Not Rendered in HTML */</span><span class=cE0>
<a name="l161"></a></span><span class=cF0>
<a name="l162"></a>
<a name="l163"></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="l164"></a>{
<a name="l165"></a> </span><span class=cF1>U8</span><span class=cF0> *tmps;
<a name="l166"></a>
<a name="l167"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc, </span><span class=cFE>100</span><span class=cF0>, task-&gt;pix_height - </span><span class=cFE>60</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFA>&lt;3&gt;</span><span class=cF0>);
<a name="l168"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc, </span><span class=cFE>194</span><span class=cF0>, task-&gt;pix_height - </span><span class=cFE>140</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFA>&lt;4&gt;</span><span class=cF0>);
<a name="l169"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc, </span><span class=cFE>400</span><span class=cF0>, task-&gt;pix_height - </span><span class=cFE>10</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFA>&lt;5&gt;</span><span class=cF0>);
<a name="l170"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc, </span><span class=cFE>50</span><span class=cF0>, task-&gt;pix_height - </span><span class=cFE>160</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFA>&lt;6&gt;</span><span class=cF0>);
<a name="l171"></a> tmps = </span><span class=cF5>SpriteInterpolate</span><span class=cF0>(</span><span class=cF5>Tri</span><span class=cF7>(</span><span class=cF5>tS</span><span class=cF0>, </span><span class=cFE>2</span><span class=cF0>.</span><span class=cFE>0</span><span class=cF7>)</span><span class=cF0>, </span><span class=cFA>&lt;1&gt;</span><span class=cF0>, </span><span class=cFA>&lt;2&gt;</span><span class=cF0>);
<a name="l172"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc, </span><span class=cFE>0</span><span class=cF0>, task-&gt;pix_height, </span><span class=cFE>0</span><span class=cF0>, tmps);
<a name="l173"></a> </span><span class=cF5>Free</span><span class=cF0>(tmps);
<a name="l174"></a>}
<a name="l175"></a>
<a name="l176"></a></span><span class=cF1>U0</span><span class=cF0> SongTask(</span><span class=cF9>I64</span><span class=cF0>)
<a name="l177"></a>{</span><span class=cF2>//Randomly generate (by God :-)</span><span class=cF0>
<a name="l178"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;task_end_cb = &amp;</span><span class=cF5>SoundTaskEndCB</span><span class=cF0>;
<a name="l179"></a> </span><span class=cF5>MusicSettingsReset</span><span class=cF0>;
<a name="l180"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF3>TRUE</span><span class=cF0>)
<a name="l181"></a> </span><span class=cF7>{</span><span class=cF0>
<a name="l182"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>&quot;4qG5eCGqE4A5FCeDF4qB&quot;</span><span class=cF0>);
<a name="l183"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>&quot;4G5eCGqE4A5FCeDF4qB&quot;</span><span class=cF0>);
<a name="l184"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>&quot;4B5DeF4G5etE4BAqBAetA5EDeE4G&quot;</span><span class=cF0>);
<a name="l185"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>&quot;4qB5DeF4G5etE4BAqBAetA5EDeE4G&quot;</span><span class=cF0>);
<a name="l186"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l187"></a>}
<a name="l188"></a>
<a name="l189"></a></span><span class=cF1>U0</span><span class=cF0> Main()
<a name="l190"></a>{
<a name="l191"></a> </span><span class=cF5>SettingsPush</span><span class=cF0>; </span><span class=cF2>//See </span><a href="https://zeal-operating-system.github.io/ZealOS/System/TaskSettings.CC.html#l3"><span class=cF4>SettingsPush</span></a><span class=cF0>
<a name="l192"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;draw_it = &amp;</span><span class=cF5>DrawIt</span><span class=cF0>;
<a name="l193"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;song_task = </span><span class=cF5>Spawn</span><span class=cF0>(&amp;SongTask, </span><span class=cF3>NULL</span><span class=cF0>, </span><span class=cF6>&quot;Song&quot;</span><span class=cF0>,, </span><span class=cF5>Fs</span><span class=cF0>);
<a name="l194"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>;
<a name="l195"></a> </span><span class=cF5>WinBorder</span><span class=cF0>;
<a name="l196"></a> </span><span class=cF5>WinMax</span><span class=cF0>;
<a name="l197"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l198"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;text_attr = </span><span class=cF3>YELLOW</span><span class=cF0> &lt;&lt; </span><span class=cFE>4</span><span class=cF0> + </span><span class=cF3>BLACK</span><span class=cF0>;
<a name="l199"></a> </span><span class=cF6>&quot;$BG,LTCYAN$%h31c&quot;</span><span class=cF0>, </span><span class=cF6>'\n'</span><span class=cF0>;
<a name="l200"></a> </span><span class=cF5>View</span><span class=cF0>;
<a name="l201"></a> </span><span class=cF5>SettingsPop</span><span class=cF0>;
<a name="l202"></a>}
<a name="l203"></a>
<a name="l204"></a>Main;
</span></pre></body>
</html>