Bitbybit Docs
    Preparing search index...

    Class RGBMinMaxDto (Inputs.Color)

    用于 color.rgbToHex 的三个通道值及其使用的范围。

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalr: number
      • Optionalg: number
      • Optionalb: number
      • Optionalmin: number
      • Optionalmax: number

      Returns RGBMinMaxDto

    Properties

    r: number

    红色通道,在 minmax 之间。

    255
    

    0

    255

    1

    g: number

    绿色通道,在 minmax 之间。

    255
    

    0

    255

    1

    b: number

    蓝色通道,在 minmax 之间。

    255
    

    0

    255

    1

    min: number

    通道可以取的最低值,通常为 0。

    0
    

    0

    255

    0.1

    max: number

    通道可以取的最高值:255 或 1;其他值会先被重新映射到 0 到 255。

    255
    

    0

    255

    0.1