From 1f647ee81764597ab556691d5745c30d46afcebc Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 10 Apr 2012 03:28:35 +0900 Subject: No hoge --- longcat.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'longcat.js') diff --git a/longcat.js b/longcat.js index b4d17a4..58b92e2 100644 --- a/longcat.js +++ b/longcat.js @@ -195,7 +195,6 @@ let INFO = let canvas = doc.createElement('canvas'); let bg = doc.createElement('div'); - canvas.innerHTML = 'hoge'; canvas.setAttribute('style', String(<>)); bg.setAttribute('style', String(<>)); canvas.width = 114; @@ -231,23 +232,22 @@ let INFO = setTimeout( function () { ctx.drawImage(head, 0, 0); - for (let i = 0; i < n; i++) - ctx.drawImage(body, 0, 100 + i * 100); + ctx.drawImage(body, 0, 100, 114, n * 100); ctx.drawImage(tail, 0, 100 + n * 100); }, 0 ); } - commands.addUserCommand( ['longcat'], 'Longcat beautifies your life.', function (args) { - let n = parseInt(args[0] || '20', 10); + let n = parseInt(args[0] || 20, 10); drawCat(n); }, - {} + {}, + true ); })(); -- cgit v1.2.3