Spaces:
Runtime error
Runtime error
export interface Color { | |
color: number[]; | |
label: string; | |
} | |
export type RGB = `rgb(${number},${number},${number})`; | |
export interface Brush { | |
color: RGB; | |
size: number; | |
label: string; | |
} | |
export interface Params { | |
prompt: string; | |
seed: bigint; | |
steps: number; | |
} | |
export interface FormElements extends HTMLCollection { | |
prompt: HTMLInputElement; | |
seed: HTMLInputElement; | |
steps: HTMLInputElement; | |
} | |
interface Point { | |
x: number; | |
y: number; | |
} | |
interface pxPoint { | |
from: Point; | |
to: Point; | |
} | |
export interface DrawingLayer { | |
brush: Brush; | |
points: pxPoint[]; | |
} | |