scttcper/tinycolor

Support alpha in from Ratio

lukasoppermann opened this issue · 1 comments

It would be awesome if an rgba object could be supported as well.

new TinyColor({ r: 255, g: 0, b: 0, a: 0.2 });

import { fromRatio } from '@ctrl/tinycolor';
fromRatio({ r: 1, g: 0, b: 0, a: 0.2 });

Nevermind, it is already supported. :D