mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add param type in raster method
Add param type in Raster#getPixel and Raster#setPixel
This commit is contained in:
parent
ef7beacd8b
commit
531479c0a0
1 changed files with 8 additions and 8 deletions
|
@ -606,8 +606,8 @@ var Raster = Item.extend(/** @lends Raster# */{
|
||||||
*
|
*
|
||||||
* @name Raster#getPixel
|
* @name Raster#getPixel
|
||||||
* @function
|
* @function
|
||||||
* @param x the x offset of the pixel in pixel coordinates
|
* @param {Number} x the x offset of the pixel in pixel coordinates
|
||||||
* @param y the y offset of the pixel in pixel coordinates
|
* @param {Number} y the y offset of the pixel in pixel coordinates
|
||||||
* @return {Color} the color of the pixel
|
* @return {Color} the color of the pixel
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
@ -615,7 +615,7 @@ var Raster = Item.extend(/** @lends Raster# */{
|
||||||
*
|
*
|
||||||
* @name Raster#getPixel
|
* @name Raster#getPixel
|
||||||
* @function
|
* @function
|
||||||
* @param point the offset of the pixel as a point in pixel coordinates
|
* @param {Point} point the offset of the pixel as a point in pixel coordinates
|
||||||
* @return {Color} the color of the pixel
|
* @return {Color} the color of the pixel
|
||||||
*/
|
*/
|
||||||
getPixel: function(/* point */) {
|
getPixel: function(/* point */) {
|
||||||
|
@ -631,17 +631,17 @@ var Raster = Item.extend(/** @lends Raster# */{
|
||||||
*
|
*
|
||||||
* @name Raster#setPixel
|
* @name Raster#setPixel
|
||||||
* @function
|
* @function
|
||||||
* @param x the x offset of the pixel in pixel coordinates
|
* @param {Number} x the x offset of the pixel in pixel coordinates
|
||||||
* @param y the y offset of the pixel in pixel coordinates
|
* @param {Number} y the y offset of the pixel in pixel coordinates
|
||||||
* @param color the color that the pixel will be set to
|
* @param {Color} color the color that the pixel will be set to
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* Sets the color of the specified pixel to the specified color.
|
* Sets the color of the specified pixel to the specified color.
|
||||||
*
|
*
|
||||||
* @name Raster#setPixel
|
* @name Raster#setPixel
|
||||||
* @function
|
* @function
|
||||||
* @param point the offset of the pixel as a point in pixel coordinates
|
* @param {Point} point the offset of the pixel as a point in pixel coordinates
|
||||||
* @param color the color that the pixel will be set to
|
* @param {Color} color the color that the pixel will be set to
|
||||||
*/
|
*/
|
||||||
setPixel: function(/* point, color */) {
|
setPixel: function(/* point, color */) {
|
||||||
var point = Point.read(arguments),
|
var point = Point.read(arguments),
|
||||||
|
|
Loading…
Reference in a new issue