Skip to content

Commit

Permalink
temp disabled pd card pre rendering cos that shit be gay yo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon1320 committed Aug 11, 2018
1 parent a0f4086 commit 4a32d5a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ const renderCard = async card => {

// image overlaying stuff.
let bg = await new jimp(800, 1200);

//
let bg2 = await new jimp(800, 1200);
//
Expand All @@ -353,7 +353,7 @@ const renderCard = async card => {
//
bg2.composite(cardArt, bg.bitmap.width / 2 - cardArt.bitmap.width / 2, bg.bitmap.height / 2 - cardArt.bitmap.height / 2);
//

bg.composite(frameOverlay, bg.bitmap.width / 2 - frameOverlay.bitmap.width / 2, bg.bitmap.height / 2 - frameOverlay.bitmap.height / 2);
bg.composite(frameOutline, bg.bitmap.width / 2 - frameOutline.bitmap.width / 2, bg.bitmap.height / 2 - frameOutline.bitmap.height / 2);

Expand Down Expand Up @@ -419,16 +419,17 @@ const renderCard = async card => {

for (let card of cards) {

promises.push(renderCard(card));
//promises.push(renderCard(card));
}

Promise.all(promises).then(() => {

console.log("rendered all pd cards");

// do stuff
//require("./bot");
require("./web");
});

//
//

// do stuff
//require("./bot");
require("./web");

0 comments on commit 4a32d5a

Please sign in to comment.