videocontext
Advanced tools
Comparing version 0.36.0 to 0.37.0
{ | ||
"name": "videocontext", | ||
"version": "0.36.0", | ||
"version": "0.37.0", | ||
"description": "A WebGL & HTML5 graph based video composition library", | ||
@@ -5,0 +5,0 @@ "keywords":["video", "context", "composition", "timeline", "html5", "webgl"], |
@@ -108,5 +108,32 @@ //Matthew Shotton, R&D User Experience,© BBC 2015 | ||
//console.log(gl.getUniformLocation(this._program, "u_image")); | ||
} | ||
/** | ||
* Sets the passed processing node property to the passed value. | ||
* @param {string} name - The name of the processing node parameter to modify. | ||
* @param {Object} value - The value to set it to. | ||
* | ||
* @example | ||
* var ctx = new VideoContext(); | ||
* var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME); | ||
* monoNode.setProperty("inputMix", [1.0,0.0,0.0]); //Just use red channel | ||
*/ | ||
setProperty(name, value){ | ||
this._properties[name].value = value; | ||
} | ||
/** | ||
* Sets the passed processing node property to the passed value. | ||
* @param {string} name - The name of the processing node parameter to get. | ||
* | ||
* @example | ||
* var ctx = new VideoContext(); | ||
* var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME); | ||
* console.log(monoNode.getProperty("inputMix")); //Will output [0.4,0.6,0.2], the default value from the effect definition. | ||
* | ||
*/ | ||
getProperty(name){ | ||
return this._properties[name].value; | ||
} | ||
_update(currentTime){ | ||
@@ -113,0 +140,0 @@ this._currentTime = currentTime; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6678887
25282