Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function InitGradient(...args) {
const grad = tinygradient.apply(this, args);
const ret = (str, opts) => applyGradient(str ? str.toString() : '', grad, opts);
ret.multiline = (str, opts) => multilineGradient(str ? str.toString() : '', grad, opts);
return ret;
}