Bitbybit Docs
    Preparing search index...

    Class HexDtoMapped (Inputs.Color)

    用于 color.hexToRgbMappedcolor.getRedParamcolor.getGreenParamcolor.getBlueParam 的十六进制颜色和目标范围。

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalcolor: string
      • Optionalfrom: number
      • Optionalto: number

      Returns HexDtoMapped

    Properties

    color: string

    以十六进制文本表示的颜色,例如 #ff5733

    #0000ff
    
    from: number

    通道值 0 映射到的值。

    0
    

    -Infinity

    Infinity

    1

    to: number

    通道值 255 映射到的值;1 使通道从 0 到 1。

    255
    

    -Infinity

    Infinity

    1