Bitbybit Docs
    Preparing search index...

    Class SceneCanvasBackgroundImageDto (Inputs.BabylonScene)

    Feeds babylon.scene.canvasBackgroundImage: the image to show behind the scene and the CSS options for how it repeats, scales, sits and scrolls.

    Index

    Constructors

    Properties

    imageUrl?: string

    Address of the image to show behind the scene

    undefined
    

    true

    Whether the image tiles across the canvas, in one direction or not at all

    noRepeat
    

    How the image is scaled: cover fills the canvas, contain shows all of it, or a CSS size such as 100px 50px

    cover
    

    Where the image sits on the canvas, such as the center or a corner, or a CSS position such as 50% 50%

    center
    

    Whether the image scrolls with the page or stays fixed to the viewport

    scroll
    

    Which box of the canvas the image is positioned against: its padding, border or content box

    paddingBox
    

    Which box of the canvas the image is clipped to: its padding, border or content box

    borderBox