* @function Pixel.prototype.clone * @description 克隆当前的 pixel 对象。 * @example * var pixcel = new Pixel(100,50); * var pixcel2 = pixcel.clone(); * @returns {Pixel} 新的与当前 pixel 对象有相同 x、y 坐标的 pixel 对象。
()
| 65 | * @returns {Pixel} 新的与当前 pixel 对象有相同 x、y 坐标的 pixel 对象。 |
| 66 | */ |
| 67 | clone() { |
| 68 | return new Pixel(this.x, this.y, this.mode); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * @function Pixel.prototype.equals |