- Notifications
You must be signed in to change notification settings - Fork12
JavaScript micro library to generate gradient color stops 🏳️🌈
License
NotificationsYou must be signed in to change notification settings
Siddharth11/gradstop
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Demo | UMD Bundle |
---|
npm install gradstop
importgradstopfrom'gradstop';constgradient=gradstop({stops:5,inputFormat:'hex',colorArray:['#343838','#00DFFC']});console.log(gradient);// rgb(52,56,56), rgb(39,97,105), rgb(26,139,154), rgb(13,181,203), rgb(0,223,252)
- inputFormat: 'hex' (supports hex, rgb and hsl)
- stops: 5
- colorArray: ['#fff', '#000'] (supports upto 4 values)
Both shorthand(#fff) and standard(#ffffff) format hex values are supported.
- Math.trunc
About
JavaScript micro library to generate gradient color stops 🏳️🌈
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.