canvg.js Javascr ipt SVG parser and renderer on Canvas rgbcolor.js A class to parse color values StackBlur.js a fast almost Gaussian Blur For Canvas MIT-LICENSE.txt
代码如下:function reverseColor(rgbColor) {//205,15,20 // console.log(rgbColor); rgbColor = rgbColor.replace(/\s/g, “”); var arrRGB = new Array(3); if (rgbColor.indexOf(“rgb”) > -1) { var colorReg = /\s*\d+,\s*\d+,\s*\d+/i; var t = colorReg.exec(rgbCol