import type { IDelta } from "../../../Core/Interfaces/IDelta.js"; import type { IOptionsColor } from "../IOptionsColor.js"; export type BackgroundDrawContext = OffscreenCanvasRenderingContext2D | CanvasRenderingContext2D; export interface IBackground { color: string | IOptionsColor; draw?: (context: BackgroundDrawContext, delta: IDelta) => void; element?: string | HTMLCanvasElement | OffscreenCanvas | HTMLVideoElement | HTMLImageElement; image: string; opacity: number; position: string; repeat: string; size: string; }