APP_PHPColors::darken( int $amount = self::DEFAULT_ADJUST )

Given a HEX value, returns a darker color. If no desired amount provided, then the color halfway between given HEX and black will be returned.


Package


Description Description


Parameters Parameters

$amount

(int) (Optional)

Default value: self::DEFAULT_ADJUST


Top ↑

Return Return

(string) Darker HEX value


Premium WordPress Apps

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.