I’ve implemented Wu’s Antialias line algorithm and it works great on a black background. However, I’ve been running into an issue making the intensity work with other colors.
I’ve been doing my color blending like this.
for(int i =0; i < 3; i++)
rgbNew[i] = (int) (rgb[i] * brightness + baseRgb[i] * (1 - brightness));
However, this only seems to work with black and white backgrounds (in other cases I get incorrect results like the image below). Any suggestions on what I am not taking into account?

My issue ended up being my method, that decomposed an integer that represented color, was mixing up red and blue. The above color mixing is correct.