Jul 14, 2021
I was just reminded after years of the "weird number" in 2's complement arithmetic:

https://en.wikipedia.org/wiki/Two%27s_complement#Most_negative_number

The reason it came up: it's the result of trying to convert a floating-point Infinity or NaN to an integer.

https://c9x.me/x86/html/file_module_x86_id_61.html


Color dithering on the Mu computer.

Here is a before/after pair of images. Before has 256x256x256 colors. After has 256 colors.

Before:

Screenshot of original .ppm file (since Mastodon doesn't render the original directly)

After:

Same image after running through Mu's dithering.

Notice all the yellow pixels in the first image that turn into alternating greens and oranges in the second. Also, the stem looks very different. But overall, it looks gratifyingly similar to the original. My eyes took a while before they started to notice differences.

Main project page

This post is part of my Freewheeling Apps Devlog.

Comments gratefully appreciated. Please send them to me by any method of your choice and I'll include them here.

archive
projects
writings
videos
subscribe
Mastodon
RSS (?)
twtxt (?)
Station (?)