Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1001 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 1001 Bytes

color

color parse and format util

color NPM downloads Build Status Coverage Status Dependency Status node version

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
    });
});