Skip to content

Commit 59d54d9

Browse files
author
GitHub Action
committed
Update RGBDS master documentation
1 parent 822f0b7 commit 59d54d9

File tree

12 files changed

+0
-23
lines changed

12 files changed

+0
-23
lines changed

docs/gbz80.7.pdf

0 Bytes
Binary file not shown.

docs/rgbasm-old.5.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -467,24 +467,6 @@ <h3 class="Ss" id="**_operator_associativity"><a class="permalink" href="#**_ope
467467
<p class="Pp">Instead, now we have &#x2018;<code class="Li">p ** q ** r == p **
468468
(q ** r)</code>&#x2019;.</p>
469469
</section>
470-
<section class="Ss">
471-
<h3 class="Ss" id="8-bit_and_5-bit_color_conversion"><a class="permalink" href="#8-bit_and_5-bit_color_conversion">8-bit
472-
and 5-bit color conversion</a></h3>
473-
<p class="Pp">Changed in 1.0.0.</p>
474-
<p class="Pp">RGBGFX takes 8-bit RGB colors as its PNG input, and outputs 5-bit
475-
GBC colors. Its &#x2018;<code class="Li">-r/--reverse</code>&#x2019; mode
476-
does the opposite 5-bit to 8-bit conversion. Instead of the previous
477-
inaccurate conversions, we now do accurate rounding to the nearest
478-
equivalent.</p>
479-
<p class="Pp">Previously to convert an 8-bit color channel to 5-bit, we
480-
truncated it as &#x2018;<code class="Li">c &gt;&gt; 3</code>&#x2019;; and to
481-
reverse a 5-bit color channel to 8-bit, we extended it as
482-
&#x2018;<code class="Li">(c &lt;&lt; 3) | (c &gt;&gt; 2)</code>&#x2019;.</p>
483-
<p class="Pp">Instead, now we round 8-bit to 5-bit as
484-
&#x2018;<code class="Li">(c * 31 + 127) / 255</code>&#x2019;, and round
485-
5-bit to 8-bit as &#x2018;<code class="Li">(c * 255 + 15) /
486-
31</code>&#x2019;.</p>
487-
</section>
488470
</section>
489471
<section class="Sh">
490472
<h2 class="Sh" id="BUGS"><a class="permalink" href="#BUGS">BUGS</a></h2>

docs/rgbasm-old.5.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@ export const toc = [
215215
"id": "**_operator_associativity",
216216
"level": 3,
217217
},
218-
{
219-
"value": "8-bit and 5-bit color conversion",
220-
"id": "8-bit_and_5-bit_color_conversion",
221-
"level": 3,
222-
},
223218
{
224219
"value": "BUGS",
225220
"id": "BUGS",

docs/rgbasm-old.5.pdf

-771 Bytes
Binary file not shown.

docs/rgbasm.1.pdf

0 Bytes
Binary file not shown.

docs/rgbasm.5.pdf

0 Bytes
Binary file not shown.

docs/rgbds.5.pdf

0 Bytes
Binary file not shown.

docs/rgbds.7.pdf

0 Bytes
Binary file not shown.

docs/rgbfix.1.pdf

0 Bytes
Binary file not shown.

docs/rgbgfx.1.pdf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)