Download Demo/Graphics/Elephant.txt from hschumann2/TempleOS-Source-Code: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Demo/Graphics/Elephant.txt
- Command line
-
hf download hf://datasets/hschumann2/TempleOS-Source-Code/Demo/Graphics/Elephant.txt
-
curl -L -o Elephant.txt https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Demo/Graphics/Elephant.txt
1.29 kB
| //Scroll Down | |
| <1>/* Graphics Not Rendered in HTML */ | |
| <2>/* Graphics Not Rendered in HTML */ | |
| <3>/* Graphics Not Rendered in HTML */ | |
| <4>/* Graphics Not Rendered in HTML */ | |
| <5>/* Graphics Not Rendered in HTML */ | |
| <6>/* Graphics Not Rendered in HTML */ | |
| U0 DrawIt(CTask *task,CDC *dc) | |
| { | |
| U8 *tmps; | |
| Sprite3(dc,100,task->pix_height-60,0,<3>); | |
| Sprite3(dc,194,task->pix_height-140,0,<4>); | |
| Sprite3(dc,400,task->pix_height-10,0,<5>); | |
| Sprite3(dc,50,task->pix_height-160,0,<6>); | |
| tmps=SpriteInterpolate(Tri(tS,2.0),<1>,<2>); | |
| Sprite3(dc,0,task->pix_height,0,tmps); | |
| Free(tmps); | |
| } | |
| U0 SongTask(I64) | |
| {//Randomly generate (by God :-) | |
| Fs->task_end_cb=&SndTaskEndCB; | |
| MusicSettingsRst; | |
| while (TRUE) { | |
| Play("4qG5eCGqE4A5FCeDF4qB"); | |
| Play("4G5eCGqE4A5FCeDF4qB"); | |
| Play("4B5DeF4G5etE4BAqBAetA5EDeE4G"); | |
| Play("4qB5DeF4G5etE4BAqBAetA5EDeE4G"); | |
| } | |
| } | |
| U0 Main() | |
| { | |
| SettingsPush; //See SettingsPush | |
| Fs->draw_it=&DrawIt; | |
| Fs->song_task=Spawn(&SongTask,NULL,"Song",,Fs); | |
| AutoComplete; | |
| WinBorder; | |
| WinMax; | |
| DocClear; | |
| Fs->text_attr=YELLOW<<4+BLACK; | |
| "$BG,LTCYAN$%h31c",'\n'; | |
| View; | |
| SettingsPop; | |
| } | |
| Main; | |