This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change the brightness of the passed in color | |
* | |
* $diff should be negative to go darker, positive to go lighter and | |
* is subtracted from the decimal (0-255) value of the color | |
* | |
* @param string $hex color to be modified | |
* @param string $diff amount to change the color |