sparkle-engine

Interface IRenderOptions

interface IRenderOptions {
    antialias?: boolean;
    backgroundColor?: Color;
    canvas: HTMLCanvasElement;
    height?: number;
    pixelDensity?: number;
    scaleMode?: SCALE_MODE;
    width?: number;
}

Hierarchy (view full)

Properties

antialias?: boolean

是否启用抗锯齿

backgroundColor?: Color
canvas: HTMLCanvasElement

canvas

height?: number
pixelDensity?: number
scaleMode?: SCALE_MODE
width?: number