Changes

Jump to: navigation, search

User:Dhhodgin

235 bytes added, 17:12, 13 December 2009
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){
1
edit

Navigation menu