templeos-info/public/Wb/Doc/TextBase.DD.HTML

51 lines
4.0 KiB
Plaintext
Raw Normal View History

2024-03-23 13:40:50 +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">
2024-03-23 13:40:50 +00:00
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.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">
2024-03-24 21:24:44 +00:00
<a name="l1"></a><a href="/Wb/Adam/Gr/GrGlbls.HC.HTML#l3"><span class=cF4>gr.text_base</span></a><span class=cF0> must be updated 30fps in your Fs-&gt;draw_it() callback. You probably
<a name="l2"></a>want </span><a href="/Wb/Adam/Gr/GrBitMap.HC.HTML#l989"><span class=cF4>GrPrint</span></a><span class=cF0>() or just </span><a href="/Wb/Kernel/StrPrint.HC.HTML#l890"><span class=cF4>Print</span></a><span class=cF0>(). The </span><a href="/Wb/Doc/DolDocOverview.DD.HTML#l1"><span class=cF4>DolDoc</span></a><span class=cF0> code takes care of plotting text to </span><span class=cF4>
<a name="l3"></a></span><a href="/Wb/Adam/Gr/GrGlbls.HC.HTML#l3"><span class=cF4>gr.text_base</span></a><span class=cF0>.
2024-03-23 13:40:50 +00:00
<a name="l4"></a>
<a name="l5"></a>Bits 0-7 8-Bit ASCII Scrn Code
2024-03-24 21:24:44 +00:00
<a name="l6"></a>Bits 8-11 Foreground </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2914"><span class=cF4>color</span></a><span class=cF0>
<a name="l7"></a>Bits 12-15 Background </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2914"><span class=cF4>color</span></a><span class=cF0>
2024-03-23 13:40:50 +00:00
<a name="l8"></a>Bits 16-20 Signed X pos shift val
<a name="l9"></a>Bits 21-25 Signed Y pos shift val
2024-03-24 21:24:44 +00:00
<a name="l10"></a>Bit 28 </span><a href="/Wb/Kernel/KernelA.HH.HTML#l893"><span class=cF4>Blink</span></a><span class=cF0>
<a name="l11"></a>Bit 29 </span><a href="/Wb/Kernel/KernelA.HH.HTML#l894"><span class=cF4>Invert</span></a><span class=cF0>ed (Swap foreground and background)
<a name="l12"></a>Bit 30 </span><a href="/Wb/Kernel/KernelA.HH.HTML#l895"><span class=cF4>Sel</span></a><span class=cF0> (XOR colors with FF)
<a name="l13"></a>Bit 31 </span><a href="/Wb/Kernel/KernelA.HH.HTML#l896"><span class=cF4>Underline</span></a><span class=cF0>
2024-03-23 13:40:50 +00:00
<a name="l14"></a></span><span class=cF4>
2024-03-24 21:24:44 +00:00
<a name="l15"></a></span><a href="/Wb/Adam/Gr/GrScrn.HC.HTML#l18"><span class=cF4>GrUpdateTaskWin</span></a><span class=cF0>() calls </span><a href="/Wb/Adam/DolDoc/DocRecalcLib.HC.HTML#l193"><span class=cF4>DocUpdateTaskDocs</span></a><span class=cF0>() which calls </span><a href="/Wb/Adam/DolDoc/DocRecalc.HC.HTML#l256"><span class=cF4>DocRecalc</span></a><span class=cF0>() where the
<a name="l16"></a>document text is plotted into </span><a href="/Wb/Adam/Gr/GrGlbls.HC.HTML#l3"><span class=cF4>gr.text_base</span></a><span class=cF0>. Then, </span><a href="/Wb/Adam/Gr/GrScrn.HC.HTML#l166"><span class=cF4>GrUpdateTextBG</span></a><span class=cF0>() and </span><span class=cF4>
<a name="l17"></a></span><a href="/Wb/Adam/Gr/GrScrn.HC.HTML#l255"><span class=cF4>GrUpdateTextFG</span></a><span class=cF0>() render the </span><a href="/Wb/Adam/Gr/GrGlbls.HC.HTML#l3"><span class=cF4>gr.text_base</span></a><span class=cF0> onto </span><a href="/Wb/Adam/Gr/GrGlbls.HC.HTML#l3"><span class=cF4>gr.dc2</span></a><span class=cF0>, a raw graphic bitmap.
2024-03-23 13:40:50 +00:00
<a name="l18"></a>
2024-03-24 21:24:44 +00:00
<a name="l19"></a>See </span><a href="/Wb/Demo/Games/Maze.HC.HTML#l1"><span class=cF4>::/Demo/Games/Maze.HC</span></a><span class=cF0>.
2024-03-23 13:40:50 +00:00
</span></pre></body>
</html>