How to use the tinygradient.apply function in tinygradient

To help you get started, we’ve selected a few tinygradient examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bokub / gradient-string / index.js View on Github external
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;
}

tinygradient

Fast and small gradients manipulation, built on top of TinyColor

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular tinygradient functions