Every line of 'javascript color code' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
167 function rgbaCode(color) { 168 var red = Math.round(color.red() * 255); 169 var green = Math.round(color.green() * 255); 170 var blue = Math.round(color.blue() * 255); 171 return 'rgba(' + red + ',' + green + ',' + blue + ',' + color.alpha() + ')'; 172 }
170 function getRGBAColor(color) { 171 return currentRGBAColors[color]; 172 }