Bitbybit Docs
    Preparing search index...

    Class CreateColorPickerDto (Inputs.BabylonGui)

    Feeds babylon.gui.colorPicker.createColorPicker: the name, starting color and optional sizes of a color picker.

    Index

    Constructors

    • Parameters

      • Optionalname: string
      • OptionaldefaultColor: string
      • Optionalcolor: string
      • Optionalwidth: string | number
      • Optionalheight: string | number
      • Optionalsize: string | number

      Returns CreateColorPickerDto

    Properties

    name: string

    Name the color picker is known by, which control.getControlByName finds it by

    colorPickerName
    
    defaultColor: string

    Hex color the picker starts on

    #f0cebb
    
    color: string

    CSS color of the control's border

    #f0cebb
    
    width?: string | number

    Width as a pixel string or a fraction; left out, 300 pixels

    undefined
    

    true

    height?: string | number

    Height as a pixel string or a fraction; left out, 300 pixels

    undefined
    

    true

    size?: string | number

    Width and height together, as a pixel string or a fraction; it overrides both when given

    300px
    

    true