Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.19 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.19 KB

color

color parse and format util

color NPM downloads Build Status Coverage Status Dependency Status Bower version node version

browser support

example

var Color = require('modulex-color');
describe('color', function () {
    it('parse rgba right', function () {
        var rgba = Color.parse('rgba(1,2,3,0.4)');
        rgba.getR()//1
        rgba.getG()//2
        rgba.getB()//3
        rgba.getA()//4
    });
});