demos/assets/g2.js
function multiplyScalar(out, a, b) {
  out[0] = a[0] * b;
  out[1] = a[1] * b;
  out[2] = a[2] * b;
  out[3] = a[3] * b;
  out[4] = a[4] * b;
  out[5] = a[5] * b;
  out[6] = a[6] * b;
  out[7] = a[7] * b;
  out[8] = a[8] * b;
  return out;
}
function multiplyScalar(out, a, b) {
  out[0] = a[0] * b;
  out[1] = a[1] * b;
  out[2] = a[2] * b;
  out[3] = a[3] * b;
  out[4] = a[4] * b;
  out[5] = a[5] * b;
  out[6] = a[6] * b;
  out[7] = a[7] * b;
  out[8] = a[8] * b;
  return out;
}
function multiplyScalar ( out , a , b ) { out [ 0 ] = a [ 0 ] * b ; out [ 1 ] = a [ 1 ] * b ; out [ 2 ] = a [ 2 ] * b ; out [ 3 ] = a [ 3 ] * b ; out [ 4 ] = a [ 4 ] * b ; out [ 5 ] = a [ 5 ] * b ; out [ 6 ] = a [ 6 ] * b ; out [ 7 ] = a [ 7 ] * b ; out [ 8 ] = a [ 8 ] * b ; return out ; }
Multiply each element of the matrix by a scalar.

@param {mat3} out the receiving matrix
@param {mat3} a the matrix to scale
@param {Number} b amount to scale the matrix's elements by
@returns {mat3} out
Multiply each element of the matrix by a scalar .