tancolor.js A jQuery plugin that processes image. *if you cannot see a picture of obama below, please check your browser compatibility.(Browser compatibility list)

Default modes


I am Obama

$("#myImage").tancolor();

I am Obama

$("#myImage").tancolor({mode: "red"});

I am Obama

$("#myImage").tancolor({mode: "green"});

I am Obama

$("#myImage").tancolor({mode: "blue"});

Custom

$("#myImageID").tancolor({
    r_weight: 0.34,
    g_weight: 0.5,
    b_weight: 0.16,
    r_intensity: 1,
    g_intensity: 1,
    b_intensity: 1
});

Compas
r_weight 0.395
g_weight 0.179
b_weight 0.069
r_intensity 1
g_intensity 2
b_intensity 78
Compas
r_weight 0.285
g_weight 0.306
b_weight 0.111
r_intensity 12
g_intensity 2
b_intensity 0
Compas
r_weight 0.361
g_weight 0.238
b_weight 0.069
r_intensity 12
g_intensity 2
b_intensity 10
Compas
r_weight 0.361
g_weight 0.238
b_weight 0.069
r_intensity 1
g_intensity 2
b_intensity 1