🚀 add emojis

This commit is contained in:
platane
2020-10-15 01:04:31 +02:00
parent 335757dc9d
commit ddcb1ae97c
5 changed files with 23 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import { getBestRoute } from "@snk/compute/getBestRoute";
import { userContributionToGrid } from "./userContributionToGrid";
export const generateContributionSnake = async (userName: string) => {
console.log("🎣 fetching github user contribution");
const { cells, colorScheme } = await getGithubUserContribution(userName);
const grid0 = userContributionToGrid(cells);
@@ -29,8 +30,10 @@ export const generateContributionSnake = async (userName: string) => {
const gifOptions = { frameDuration: 100, step: 1 };
console.log("📡 computing best route");
const chain = getBestRoute(grid0, snake0)!;
console.log("📹 creating gif");
const buffer = await createGif(grid0, chain, drawOptions, gifOptions);
return buffer;