As usual, I've been switching between a lot of different topics in the last few days
-looking for a minimal terminal emulator to embed in Custom on Mac to fix bug 26, I forked hackterm and started making improvements to it...
-working on fixing gfx_sdl2 on Mac
-looking into other gfx_sdl2 and gfx_sdl problems
-fixed some bugs including a frame skipping bug (broke 60fps games on Mac); error messages; random colors when using sprite transparency; and more
-optimised blitting in 24-bit color mode
-rewrote screen fades (see below)
-wrote up
Plan for Canvas slices
-installed a wiki extension
-reviewed my unmerged stencil slice branch; I think I decided on how to do multi-slice stencil. But not for the next release, because stencils are currently incompatible with 32-bit color mode, so it's one or the other
-start on adding an argument to dissolvesprite to control what happens afterwards
And I haven't touched the font/text system since.
The following gifs have been slowed down to 1/2 the usual speed.
Fades look like this in Gorgonzola. Note that the palette gets washed out, and fading in and out look different:
I rewrote it to uniformly fade the whole palette in/out (equivalent to drawing a transparent rectangle over the screen), but I didn't like how it suddenly drops to black:
After a lot of experimenting, I settled on a custom cubic interpolation function which eases in/out at the start and end of the fade:
Yet another thing noone asked for (and I know someone is going to complain).
But the reason I'm working on screen fading is because it's the thing holding up 24-bit color mode.