Added initial code to composite.js.

Also required it in index.js. Basic composition working.
master
jdiez17 10 years ago
parent 2979581e81
commit 8f57dfc3e6
  1. 1
      index.js
  2. 8
      lib/composite.js

@ -116,6 +116,7 @@ require("./lib/drawing")(gm.prototype);
require("./lib/convenience")(gm.prototype);
require("./lib/command")(gm.prototype);
require("./lib/compare")(gm.prototype);
require("./lib/composite")(gm.prototype);
/**
* Expose.

@ -17,3 +17,11 @@ var utils = require('./utils');
* @param {String} [mask] Path to the image with opacity informtion. Grayscale.
*/
module.exports = exports = function(proto) {
proto.composite = function(other, mask) {
this.in(other);
this.subCommand("composite");
return this;
}
}

Loading…
Cancel
Save