mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
continued cleaning up filter docs
This commit is contained in:
parent
3f125aff43
commit
3814a1dddc
@ -25,14 +25,12 @@
|
||||
|
||||
Kinetic.Factory.addFilterGetterSetter(Kinetic.Node, 'level', 0.5);
|
||||
|
||||
/**
|
||||
* get/set levels. Must be a number between 0 and 1
|
||||
* @name level
|
||||
* @method
|
||||
* @memberof Kinetic.Node.prototype
|
||||
* @param {Number} level between 0 and 1
|
||||
* @returns {Number}
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* get/set levels. Must be a number between 0 and 1
|
||||
* @name level
|
||||
* @method
|
||||
* @memberof Kinetic.Node.prototype
|
||||
* @param {Number} level between 0 and 1
|
||||
* @returns {Number}
|
||||
*/
|
||||
})();
|
@ -1,8 +1,7 @@
|
||||
(function () {
|
||||
|
||||
/**
|
||||
* Noise Filter. Randomly adds or substracts to the color channels.
|
||||
* Performs w*h pixel reads and w*h pixel writes.
|
||||
* Noise Filter. Randomly adds or substracts to the color channels
|
||||
* @function
|
||||
* @memberof Kinetic.Filters
|
||||
* @param {Object} imagedata
|
||||
@ -25,14 +24,11 @@
|
||||
Kinetic.Factory.addFilterGetterSetter(Kinetic.Node, 'noise', 0.2);
|
||||
|
||||
/**
|
||||
* get/set noise amount. Returns the amount of noise. Between 0 and 1.
|
||||
* get/set noise amount. Must be a value between 0 and 1
|
||||
* @name noise
|
||||
* @method
|
||||
* @memberof Kinetic.Node.prototype
|
||||
* @param {Number} noise
|
||||
* @returns {Number}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
})();
|
||||
|
@ -4,9 +4,9 @@
|
||||
* Pixelate Filter. Averages groups of pixels and redraws
|
||||
* them as larger pixels
|
||||
* @function
|
||||
* @author ippo615
|
||||
* @memberof Kinetic.Filters
|
||||
* @param {Object} imageData
|
||||
* @author ippo615
|
||||
*/
|
||||
|
||||
Kinetic.Filters.Pixelate = function (imageData) {
|
||||
|
@ -24,10 +24,10 @@
|
||||
Kinetic.Factory.addFilterGetterSetter(Kinetic.Node, 'threshold', 0.5);
|
||||
|
||||
/**
|
||||
* get/set threshold. Value between 0 and 1
|
||||
* get/set threshold. Must be a value between 0 and 1
|
||||
* @name threshold
|
||||
* @method
|
||||
* @memberof Kinetic.Image.prototype
|
||||
* @memberof Kinetic.Node.prototype
|
||||
* @param {Number} threshold
|
||||
* @returns {Number}
|
||||
*/
|
||||
|
@ -87,7 +87,7 @@
|
||||
<script src="unit/filters/Invert-test.js"></script>
|
||||
|
||||
<script src="unit/filters/Mask-test.js"></script>
|
||||
<!--<script src="unit/filters/ConvolvePack-test.js"></script>-->
|
||||
<script src="unit/filters/ConvolvePack-test.js"></script>
|
||||
<script src="unit/filters/Grayscale-test.js"></script>
|
||||
<script src="unit/filters/Enhance-test.js"></script>
|
||||
<!--<script src="unit/filters/Polar-test.js"></script>-->
|
||||
|
Loading…
Reference in New Issue
Block a user