Permalink
Browse files

fix the dy

  • Loading branch information...
substack committed May 7, 2012
1 parent 8766903 commit 87b348e515b7b27cb9f10659944c8510a786eab3
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 package.json
View
@@ -30,7 +30,7 @@ module.exports = function (opts) {
var png = new PNG(bufs.slice());
png.decode(function (pixels) {
var dx = png.width / opts.cols;
- var dy = 2 * dx * png.height / png.width;
+ var dy = 2 * dx;
for (var y = 0; y < png.height; y += dy) {
for (var x = 0; x < png.width; x += dx) {
View
@@ -1,7 +1,7 @@
{
"name" : "picture-tube",
"description" : "render 256 color images on the terminal",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/picture-tube.git"

0 comments on commit 87b348e

Please sign in to comment.