Bitbybit Docs
    Preparing search index...

    Class HexDtoMapped (Inputs.Color)

    A hex color and a target range for color.hexToRgbMapped, color.getRedParam, color.getGreenParam and color.getBlueParam.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

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

      Returns HexDtoMapped

    Properties

    color: string

    The color as a hex text such as #ff5733.

    #0000ff
    
    from: number

    The value a channel of 0 maps to.

    0
    

    -Infinity

    Infinity

    1

    to: number

    The value a channel of 255 maps to; 1 gives channels from 0 to 1.

    255
    

    -Infinity

    Infinity

    1