Ported to javascript from https://gitlab.com/azelpg/azpainter/-/blob/master/src/image/blendcolor_8bit.c
luminous_add
luminous_dodge
overlay
hardlight