Used when hue-rotate does not work e.g. on dark images Based on https://codepen.io/sosuke/pen/Pjoqqp https://stackoverflow.com/questions/42966641/how-to-transform-black-into-any-given-color-using-only-css-filters/43960991#43960991
As the result does vary because of a Math.random(), I would suggest console.log some filters, pick nice ones and hardcode them instead: console.log(colorShifter(randomRgb(1, 10)));
Used when hue-rotate does not work e.g. on dark images Based on https://codepen.io/sosuke/pen/Pjoqqp https://stackoverflow.com/questions/42966641/how-to-transform-black-into-any-given-color-using-only-css-filters/43960991#43960991
As the result does vary because of a Math.random(), I would suggest console.log some filters, pick nice ones and hardcode them instead: console.log(colorShifter(randomRgb(1, 10)));