Get actual HEX and RGB of shade produced by given Background and Foreground colors.
- Clone/Download script.js file and index.html(sample)
- link this script to index.html (already linked in sample)
MyShade object is available globaly which have get method
- get()
- Takes background, foreground and opacity of foreground
- background (hex string)
- foreground (hex string)
- opacity (in percentage) (0-100)
- Return output array consists a shade color in a form of HEX and RGB both.
var output = MyShade.get('#ffffff','#000000',50)
console.log(output)