mirror of https://gitgud.io/fatchan/gm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
651 B
29 lines
651 B
|
|
var assert = require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
|
|
var m = gm
|
|
.blur(8, 4)
|
|
.stroke("blue", 1)
|
|
.drawEllipse(155, 80, 130, 50);
|
|
|
|
var args = m.args();
|
|
assert.equal('convert', args[0]);
|
|
assert.equal('-blur', args[2]);
|
|
assert.equal('8x4', args[3]);
|
|
assert.equal('-strokewidth', args[4]);
|
|
assert.equal(1, args[5]);
|
|
assert.equal('-stroke', args[6]);
|
|
assert.equal('blue', args[7]);
|
|
assert.equal('-draw', args[8]);
|
|
assert.equal('ellipse 155,80 130,50 0,360', args[9]);
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
m
|
|
.write(dir + '/ellipse.png', function ellipse (err) {
|
|
finish(err);
|
|
});
|
|
}
|
|
|