in toolkit/jb/shared.js [505:528]
function applyGradient(p, config, ctx) {
var palette = config.palette;
if (!palette) return;
var width = config.width || window.innerWidth;
var height = config.height || window.innerHeight;
//Main gradient
// --> p.blendMode(p.OVERLAY);
// p.blendMode(p.NORMAL);
if (ctx) {
//var gradient = ctx.createLinearGradient(startGrad1.x, startGrad1.y, endGrad1.x, endGrad1.y);
// gradient.addColorStop(0, palette[0]);
// gradient.addColorStop(1, palette[2]);
var gradient = ctx.createLinearGradient(0, 0, width, height);
gradient.addColorStop(0.1, palette[2]);
gradient.addColorStop(0.5, palette[1]);
gradient.addColorStop(0.9, palette[0]);
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, width, height);
}
// --> p.blendMode(p.BLEND);
}