rapid-render
    Preparing search index...

    Interface IAppOptions

    Options for initializing the Rapid application.

    interface IAppOptions {
        backgroundColor?: Color;
        canvas: HTMLCanvasElement;
        logicHeight?: number;
        logicWidth?: number;
        physicsHeight?: number;
        physicsWidth?: number;
    }
    Index

    Properties

    backgroundColor?: Color

    The default clear color for the application background.

    canvas: HTMLCanvasElement

    The HTML canvas element to render onto.

    logicHeight?: number

    The logical height of the application (CSS pixels).

    logicWidth?: number

    The logical width of the application (CSS pixels).

    physicsHeight?: number

    The physical height of the application (actual pixels).

    physicsWidth?: number

    The physical width of the application (actual pixels).