How to use the blendColor function from bindings

Find comprehensive JavaScript bindings.blendColor code examples handpicked from public code repositorys.

81
82
83
84
85
86
87
88
89
90
    throw new TypeError('Expected bindTexture(number target, WebGLTexture texture)');
  }
  return _bindTexture(target, texture ? texture._ : 0);
}

var _blendColor = gl.blendColor;
gl.blendColor = function blendColor(red, green, blue, alpha) {
  if (!(arguments.length === 4 && typeof red === "number" && typeof green === "number" && typeof blue === "number" && typeof alpha === "number")) {
    throw new TypeError('Expected blendColor(number red, number green, number blue, number alpha)');
  }
fork icon265
star icon386
watch icon20

365
366
367
368
369
370
371
372
373
374
GL.blendColor = function() {
    if (GL.debug) {
        console.log("blendColor");
        console.log(arguments);
    }
    return gl_bindings.blendColor.apply(null, arguments);
};
GL.blendEquation = function() {
    if (GL.debug) {
        console.log("blendEquation");
fork icon0
star icon0
watch icon0

+ 70 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)