ansi-gif
Advanced tools
Comparing version 0.2.0 to 0.3.0
16
gif.js
@@ -55,4 +55,15 @@ var asynk = require('async'); | ||
if(!width) width = frame.width; | ||
if(ob.options.blended && (ob.options.stipple || ob.options.lineart)){ | ||
ob.options.verb = 'posterized'; | ||
} | ||
var defaultWidth = 80; | ||
if( | ||
process && | ||
process.stdout && | ||
process.stdout.columns | ||
){ | ||
defaultWidth = process.stdout.columns; | ||
} | ||
var image = new Image({ | ||
width : ob.options.width || 80, | ||
width : ob.options.width || defaultWidth, | ||
alphabet : ob.options.alphabet || 'variant4', | ||
@@ -62,3 +73,4 @@ background : ob.options.background, | ||
stroke : ob.options.color, | ||
stipple : ob.options.stipple, | ||
stippled : ob.options.stipple && '#FFFFFF', | ||
lineart : ob.options.stipple && '#000000', | ||
blended : ob.options.blended, | ||
@@ -65,0 +77,0 @@ loader : function(image, setAspectRatio, Canvas, Image){ |
{ | ||
"name": "ansi-gif", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"homepage": "https://github.com/khrome/ansi-gif", | ||
@@ -35,4 +35,4 @@ "main": "gif.js", | ||
"dependencies": { | ||
"ascii-art-ansi": "^1.3.3", | ||
"ascii-art-image": "^1.2.2", | ||
"ascii-art-ansi": "^1.4.0", | ||
"ascii-art-image": "^1.4.0", | ||
"async": "^3.1.0", | ||
@@ -39,0 +39,0 @@ "canvas": "^2.6.0", |
Sorry, the diff of this file is not supported yet
176
2286053
7
Updatedascii-art-ansi@^1.4.0
Updatedascii-art-image@^1.4.0