Skip to main content

lighten_color()

public static function lighten_color( $color, $lighten_amount, $format='hex' )

Lighten a given color by a specific amount.

Since: 2.7

Source: common.php:8070

Parameters

NameTypeDefaultDescription
$colorstringThe color string to modify, as a hex code (either 3 or 6 digits).
$lighten_amountfloatThe amount by which to modify the color, in steps.
$formatstring'hex'The format in which to return the color (hex or rgb)

Returns

  • mixed