mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
生成する画像のサイズを1pxに
This commit is contained in:
parent
4099fa30b6
commit
cb0878fab1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue