jinjin
installation
use npm or yarn
npm i jinjin -S // use npmyarn add jinjin // use yarn
in es6
use script
how to run example
npm run dev.eg // use npmyarn dev.eg // use yarn
api
jin
you can import from "jinjin" in common js , for use script tag and jin
have already explored to window
.
type
functioninput
(String) color code of hex / (Number, Number, Number) r, g, breturn
Color instance usage
let white = let black =
setHSB
type
functioninput
Object ({h, s, b})return
Color instance
(class) Color
properties:
rgb
Object ({r, g, b})hsb
Object ({h, s, b})
run test
npm test // use npmyarn test // use yarn
// get color of 1 degree greater than the former in hue