src/textures.js
function make1Pixel(color) {
  color = color || defaults.textureColor;
  if (isArrayBuffer(color)) {
    return color;
  }
  return new Uint8Array([color[0] * 255, color[1] * 255, color[2] * 255, color[3] * 255]);
}
function make1Pixel(color) {
  color = color || defaults.textureColor;
  if (isArrayBuffer(color)) {
    return color;
  }
  return new Uint8Array([color[0] * 255, color[1] * 255, color[2] * 255, color[3] * 255]);
}
function make1Pixel ( color ) { color = color || defaults . textureColor ; if ( isArrayBuffer ( color ) ) { return color ; } return new Uint8Array ( [ color [ 0 ] * 255 , color [ 1 ] * 255 , color [ 2 ] * 255 , color [ 3 ] * 255 ] ) ; }
Makes a 1x1 pixel
If no color is passed in uses the default color which can be set by calling `setDefaultTextureColor`.
@param {(number[]|ArrayBufferView)} [color] The color using 0-1 values
@return {Uint8Array} Unit8Array with color.
@private
Makes a 1x1 pixel If no color is passed in uses the default color which can be set by calling setDefaultTextureColor .