cosmopolitan/examples
Justine Tunney 467504308a Improve emulator color math
Video game emulators seem to convert colors for modern displays poorly.
Check out https://youtu.be/Eds63YbGhDQ?t=481 where we notice in the CRT
displays Super Mario Bros with a blue sky, whereas the PC shows purple.

It's likely b/c NTSC used Illuminant C whereas sRGB uses Illuminant D65.
See the improvement: https://justine.storage.googleapis.com/nesemu3.png
Now you can play video games in the terminal as they looked in the 80's.

This change also reduces CPU usage to a third.
2020-07-02 20:48:57 -07:00
..
package Add further clarity to example package 2020-06-18 16:23:41 -07:00
auto-launch-gdb-on-crash.c Add example for auto debugging and asm() usage 2020-06-26 16:09:04 -07:00
backtrace.c Initial import 2020-06-15 07:18:57 -07:00
bigmem.c Initial import 2020-06-15 07:18:57 -07:00
breakpoint.c Initial import 2020-06-15 07:18:57 -07:00
cplusplus.cc Initial import 2020-06-15 07:18:57 -07:00
crashreport.c Initial import 2020-06-15 07:18:57 -07:00
ctrlc.c Initial import 2020-06-15 07:18:57 -07:00
date.c Initial import 2020-06-15 07:18:57 -07:00
dinlerp.c Initial import 2020-06-15 07:18:57 -07:00
examples.mk Add NES emulator 2020-07-02 13:46:08 -07:00
findprime.c Initial import 2020-06-15 07:18:57 -07:00
fld.c Initial import 2020-06-15 07:18:57 -07:00
forkrand.c Initial import 2020-06-15 07:18:57 -07:00
forky.c Initial import 2020-06-15 07:18:57 -07:00
generalized-automatic-datastructure-printing.c Initial import 2020-06-15 07:18:57 -07:00
gui.c Initial import 2020-06-15 07:18:57 -07:00
hello.c Initial import 2020-06-15 07:18:57 -07:00
hello.js Initial import 2020-06-15 07:18:57 -07:00
hello2.c Initial import 2020-06-15 07:18:57 -07:00
hello3.c Initial import 2020-06-15 07:18:57 -07:00
hello4.c Initial import 2020-06-15 07:18:57 -07:00
hellojs.c Initial import 2020-06-15 07:18:57 -07:00
hidecursor.c Initial import 2020-06-15 07:18:57 -07:00
invtsc.c Initial import 2020-06-15 07:18:57 -07:00
ispell.c Add spellcheck example 2020-06-27 12:25:40 -07:00
kilo.c Initial import 2020-06-15 07:18:57 -07:00
life.c Initial import 2020-06-15 07:18:57 -07:00
mappy.c Initial import 2020-06-15 07:18:57 -07:00
nesemu1.cc Improve emulator color math 2020-07-02 20:48:57 -07:00
now.c Initial import 2020-06-15 07:18:57 -07:00
peek.c Initial import 2020-06-15 07:18:57 -07:00
pipe.c Initial import 2020-06-15 07:18:57 -07:00
poll.c Initial import 2020-06-15 07:18:57 -07:00
printargs.c Initial import 2020-06-15 07:18:57 -07:00
printmysymbols.c Initial import 2020-06-15 07:18:57 -07:00
printprimes.c Initial import 2020-06-15 07:18:57 -07:00
rawmode.c Initial import 2020-06-15 07:18:57 -07:00
rusage.c Initial import 2020-06-15 07:18:57 -07:00
stat.c Initial import 2020-06-15 07:18:57 -07:00
subprocess.c Initial import 2020-06-15 07:18:57 -07:00
tiny-raw-linux-tutorial.S Polish up repository and other revisions 2020-06-16 06:38:43 -07:00
ttyinfo.c Initial import 2020-06-15 07:18:57 -07:00
uname.c Initial import 2020-06-15 07:18:57 -07:00
unbourne.c Make small fixes and oops ran clang-format on dtoa 2020-06-30 19:55:47 -07:00
x86split.c Initial import 2020-06-15 07:18:57 -07:00