Bitbybit Docs
    Preparing search index...

    Class SceneMultiColorRadialGradientDto (Inputs.BabylonScene)

    babylon.scene.multiColorRadialGradientBackground 使用:各颜色、每种颜色一个色标位置、渐变扩散的起点及其形状。

    Index

    Constructors

    Properties

    Constructors

    Properties

    colors: string[]

    从中心向外的十六进制颜色;列表长度必须与 stops 相同

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

    每种颜色为纯色的距中心距离,以百分比表示,每种颜色一个

    [0, 100]
    

    渐变中心在画布上的位置

    center
    

    渐变是以圆形扩散还是随画布拉伸成椭圆

    circle