0.1.0 • Published 2 years ago

@mazznoer/colorgrad v0.1.0

Weekly downloads
-
License
MIT OR Apache-2.0
Repository
github
Last release
2 years ago

colorgrad (js)

npm

Installation

npm i @mazznoer/colorgrad

Usage

let gradient = colorgrad.custom_gradient(["#C41189", "#00BFFF", "#FFD700"], null, "oklab");
let hex = gradient.at(0.5).hex();
let [r, g, b, a] = gradient.at(0.7).rgba8();

TODO add more usage example.