From c92febbfe96a03518d18f5d89d6218ce75b0f86b Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+KaizIqbal@users.noreply.github.com> Date: Sun, 16 Aug 2020 17:43:13 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B8=20Render=20Bitmaps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/index.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/round/src/index.ts b/packages/round/src/index.ts index d5dd4a13..fd05bef1 100644 --- a/packages/round/src/index.ts +++ b/packages/round/src/index.ts @@ -2,14 +2,17 @@ import { generateConfigs } from "./helpers/schema"; import { colorSchemes, rawSvgsDir } from "./config"; // from shared package -// import { renderCursors } from "shared"; +import { renderCursors } from "shared"; -// Svg generate dir prefix -const prefix = "Bibata Round"; +(async () => { + // Svg generate dir prefix + const prefix = "Bibata Round"; + const configs = generateConfigs(colorSchemes, prefix, rawSvgsDir); -const configs = generateConfigs(colorSchemes, prefix, rawSvgsDir); - -for (let [config] of Object.entries(configs)) { - const { animatedCursors } = configs[config]; - console.log(animatedCursors); -} + for (let [schema, { bitmapsDir }] of Object.entries(configs)) { + console.log(`\nGenerating ${prefix} ${schema} bitmaps`); + await renderCursors(configs[schema]); + console.log(`\nBitmaps stored at ${bitmapsDir}`); + } + console.log("\n\nšŸŽ‰ Render Done."); +})();