templeos-info/public/Wb/Demo/Graphics/Elephant.HC.HTML

237 lines
9.5 KiB
Plaintext
Raw Normal View History

2024-03-24 21:24:44 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cB0{color:#000000;background-color:#55ffff;}
.cE0{color:#000000;background-color:#ffff55;}
.cEA{color:#55ff55;background-color:#ffff55;}
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre id="content">
<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> </span><span class=cF5>Sprite3</span><span class=cF0>(dc,100,task-&gt;pix_height-60,0,</span><span class=cFA>&lt;3&gt;</span><span class=cF0>);
<a name="l167"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc,194,task-&gt;pix_height-140,0,</span><span class=cFA>&lt;4&gt;</span><span class=cF0>);
<a name="l168"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc,400,task-&gt;pix_height-10,0,</span><span class=cFA>&lt;5&gt;</span><span class=cF0>);
<a name="l169"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc,50,task-&gt;pix_height-160,0,</span><span class=cFA>&lt;6&gt;</span><span class=cF0>);
<a name="l170"></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>,2.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="l171"></a> </span><span class=cF5>Sprite3</span><span class=cF0>(dc,0,task-&gt;pix_height,0,tmps);
<a name="l172"></a> </span><span class=cF5>Free</span><span class=cF0>(tmps);
<a name="l173"></a>}
<a name="l174"></a>
<a name="l175"></a></span><span class=cF1>U0</span><span class=cF0> SongTask(</span><span class=cF9>I64</span><span class=cF0>)
<a name="l176"></a>{</span><span class=cF2>//Randomly generate (by God :-)</span><span class=cF0>
<a name="l177"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;task_end_cb=&amp;</span><span class=cF5>SndTaskEndCB</span><span class=cF0>;
<a name="l178"></a> </span><span class=cF5>MusicSettingsRst</span><span class=cF0>;
<a name="l179"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF3>TRUE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l180"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>&quot;4qG5eCGqE4A5FCeDF4qB&quot;</span><span class=cF0>);
<a name="l181"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>&quot;4G5eCGqE4A5FCeDF4qB&quot;</span><span class=cF0>);
<a name="l182"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>&quot;4B5DeF4G5etE4BAqBAetA5EDeE4G&quot;</span><span class=cF0>);
<a name="l183"></a> </span><span class=cF5>Play</span><span class=cF0>(</span><span class=cF6>&quot;4qB5DeF4G5etE4BAqBAetA5EDeE4G&quot;</span><span class=cF0>);
<a name="l184"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l185"></a>}
<a name="l186"></a>
<a name="l187"></a></span><span class=cF1>U0</span><span class=cF0> Main()
<a name="l188"></a>{
<a name="l189"></a> </span><span class=cF5>SettingsPush</span><span class=cF0>; </span><span class=cF2>//See </span><a href="/Wb/Adam/TaskSettings.HC.HTML#l3"><span class=cF4>SettingsPush</span></a><span class=cF0>
<a name="l190"></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="l191"></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="l192"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>;
<a name="l193"></a> </span><span class=cF5>WinBorder</span><span class=cF0>;
<a name="l194"></a> </span><span class=cF5>WinMax</span><span class=cF0>;
<a name="l195"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
<a name="l196"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;text_attr=</span><span class=cF3>YELLOW</span><span class=cF0>&lt;&lt;4+</span><span class=cF3>BLACK</span><span class=cF0>;
<a name="l197"></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="l198"></a> </span><span class=cF5>View</span><span class=cF0>;
<a name="l199"></a> </span><span class=cF5>SettingsPop</span><span class=cF0>;
<a name="l200"></a>}
<a name="l201"></a>
<a name="l202"></a>Main;
</span></pre></body>
</html>