Intelligent colour expansion and alpha blending, measured in the simulator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
193bcd5d97
commit
56062e1a3e
5 files changed
+78
-25
No files matched your search
@@ -38,6 +38,13 @@ Per component (dedicated test pages):
|
||||
|
||||
## Rules learned from the Editor
|
||||
|
||||
- Colours: RGB565 is expanded differently per series. Basic replicates the top bits
|
||||
(`r<<3 | r>>2`); Intelligent scales (`r*255//31`, `g*255//63`), so `0xC618` shows as
|
||||
(198,195,198) on Basic and (197,194,197) on Intelligent.
|
||||
- Intelligent pictures with alpha (format 4, 7-bit alpha `a`): 8-bit alpha is `2*a` (127 = 255),
|
||||
blended as `bg + round((src - bg) * alpha / 255)` per channel. Exact against the Intelligent
|
||||
simulator (342 samples). The Editor *canvas* blends slightly differently (up to 3 levels off at
|
||||
high alpha); the renderer follows the simulator, i.e. the display.
|
||||
- Text never starts above/left of its box: centring clamps at 0 (a 32-px font in a 30-px box
|
||||
starts at the top).
|
||||
- Text is laid out inside the border: 1 px for 3D styles, `borderw` for style "border".
|
||||
|
||||
Reference in new issue
Block a user