生成する画像のサイズを1pxに

This commit is contained in:
na2na 2022-02-17 01:13:26 +09:00
parent 4099fa30b6
commit cb0878fab1

View file

@ -1,6 +1,6 @@
import { createCanvas } from 'canvas';
const imageSize = 512; //px
const imageSize = 1; //px
export function generateColorSample(r: string, g: string, b: string) {
const canvas = createCanvas(imageSize, imageSize);