tahamajs's picture
download
raw
428 Bytes
import "../color/rgb";
d3.interpolateRgb = d3_interpolateRgb;
function d3_interpolateRgb(a, b) {
a = d3.rgb(a);
b = d3.rgb(b);
var ar = a.r,
ag = a.g,
ab = a.b,
br = b.r - ar,
bg = b.g - ag,
bb = b.b - ab;
return function(t) {
return "#"
+ d3_rgb_hex(Math.round(ar + br * t))
+ d3_rgb_hex(Math.round(ag + bg * t))
+ d3_rgb_hex(Math.round(ab + bb * t));
};
}

Xet Storage Details

Size:
428 Bytes
·
Xet hash:
97e36238fbf57a1c69cb7a0c156d10323fed0e3feef72bd6c575a706d021524a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.