Skip to content

Commit

Permalink
Merge pull request #33 from m-e-h/patch-1
Browse files Browse the repository at this point in the history
Than not Then
  • Loading branch information
mexitek committed Jan 12, 2016
2 parents 0e88a5a + 5594df5 commit 629eb54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mexitek/PHPColors/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ public function isLight( $color = FALSE, $lighterThan = 130 ){
/**
* Returns whether or not a given color is considered "dark"
* @param string|Boolean $color
* @param int $darkerThen
* @param int $darkerThan
* @return boolean
*/
public function isDark( $color = FALSE, $darkerThen = 130 ){
public function isDark( $color = FALSE, $darkerThan = 130 ){
// Get our color
$color = ($color) ? $color:$this->_hex;

Expand All @@ -293,7 +293,7 @@ public function isDark( $color = FALSE, $darkerThen = 130 ){
$g = hexdec($color[2].$color[3]);
$b = hexdec($color[4].$color[5]);

return (( $r*299 + $g*587 + $b*114 )/1000 <= $darkerThen);
return (( $r*299 + $g*587 + $b*114 )/1000 <= $darkerThan);
}

/**
Expand Down

0 comments on commit 629eb54

Please sign in to comment.