Bitbybit Docs
    Preparing search index...

    Class SceneMultiColorRadialGradientDto (Inputs.BabylonScene)

    Feeds babylon.scene.multiColorRadialGradientBackground: the colors, one stop each, where the gradient spreads from and its shape.

    Index

    Constructors

    Properties

    Constructors

    Properties

    colors: string[]

    The hex colors from the center outward; the list must be as long as stops

    ["#1a1c1f", "#93aacd"]
    
    stops: number[]

    How far from the center each color is pure, as percentages, one per color

    [0, 100]
    

    Where the center of the gradient sits on the canvas

    center
    

    Whether the gradient spreads as a circle or stretches into an ellipse with the canvas

    circle