Simple C to mix pixel data, integer math (fixed point), data clamping
Today's Features
- Simple program to add two pixels clamping each byte to 0xFF, but adding all four bytes in parallel for speed. There are no branches in the algorithm.
- Another simple program to mix two colors defining a gradient using a fraction from 0 to 1. We compare floating point to fixed point math versions.
Surprisingly, the long version compiles about the same code as the short one with...