examples/modules/util.js
// RGBA fills a color vectors from a RGBA quad.
RGBA fills a color vectors from a RGBA quad.
RGBA fills a color vectors from a RGBA quad .
function RGBA(r, g, b, a, color) {
  r = capRGB(r);
  g = capRGB(g);
  b = capRGB(b);
  a = capAlpha(a);
  color[0] = r;
  color[1] = g;
  color[2] = b;
  color[3] = a;
}
function RGBA ( r , g , b , a , color ) { r = capRGB ( r ) ; g = capRGB ( g ) ; b = capRGB ( b ) ; a = capAlpha ( a ) ; color [ 0 ] = r ; color [ 1 ] = g ; color [ 2 ] = b ; color [ 3 ] = a ; }
RGBA fills a color vectors from a RGBA quad.
RGBA fills a color vectors from a RGBA quad .