Bitbybit Docs
    Preparing search index...

    Class SceneTwoColorRadialGradientDto (Inputs.BabylonScene)

    Feeds babylon.scene.twoColorRadialGradientBackground: the two colors, where the gradient spreads from, its shape and where each color stops.

    Index

    Constructors

    Properties

    colorFrom: string

    Hex color at the center of the gradient

    #1a1c1f
    
    colorTo: string

    Hex color at the outer edge of the gradient

    #93aacd
    

    Where the center of the gradient sits on the canvas

    center
    
    stopFrom: number

    How far from the center the first color is still pure, as a percentage

    0
    

    0

    100

    1

    stopTo: number

    How far from the center the second color becomes pure, as a percentage

    100
    

    0

    100

    1

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

    circle