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.
32 lines
732 B
32 lines
732 B
|
|
var assert = require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
|
|
var m = gm
|
|
.blur(8, 4)
|
|
.stroke("red", 1)
|
|
.fill("#ffffffbb")
|
|
.drawCircle(125, 45, 120, 5);
|
|
|
|
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('red', args[7]);
|
|
assert.equal('-fill', args[8]);
|
|
assert.equal('#ffffffbb', args[9]);
|
|
assert.equal('-draw', args[10]);
|
|
assert.equal('circle 125,45 120,5', args[11]);
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
m
|
|
.write(dir + '/circle.png', function circle (err) {
|
|
finish(err);
|
|
});
|
|
}
|
|
|