Hive
    Preparing search index...

    Function lightenColor

    • 减淡颜色亮度

      Parameters

      • color: string

        HEX 颜色值

      • offset: number

        减淡幅度,取值范围 [0, 1]

      Returns string

      新的 hex 颜色

      lightenColor('#999999', 0.1) // #B3B3B3
      lightenColor('#999999', 0.2) // #CCCCCC