This commit is contained in:
syuilo
2022-02-03 21:20:25 +09:00
parent 8c9a13b2b7
commit b7bbe090e9
14 changed files with 12 additions and 5 deletions

View File

@ -39,7 +39,7 @@ const sideN = Math.floor(n / 2);
*/
export function genIdenticon(seed: string, stream: WriteStream): Promise<void> {
const rand = gen.create(seed);
const canvas = p.make(size, size);
const canvas = p.make(size, size, undefined);
const ctx = canvas.getContext('2d');
ctx.fillStyle = bg;