1
edit
Changes
→CONSTANTS ADDED
p.DODGE = 1 << 12;
p.BURN = 1 << 13;
// fixed point precision is limited to 15 bits!!
p.PRECISIONB = 15;
p.PRECISIONF = 1 << p.PRECISIONB;
p.PREC_MAXVAL = p.PRECISIONF-1;
p.PREC_ALPHA_SHIFT= 24-p.PRECISIONB;
p.PREC_RED_SHIFT = 16-p.PRECISIONB;
=== blendColor() ===
p.blendColor = function(c1, c2, mode){