public function BackgroundImageManagerInterface::colorIsDark in Background Image 8
Same name and namespace in other branches
- 2.x src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::colorIsDark()
- 2.0.x src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::colorIsDark()
Determines if a color is "dark".
Parameters
string $hex: A HEX color representation.
Return value
bool TRUE or FALSE
1 method overrides BackgroundImageManagerInterface::colorIsDark()
- BackgroundImageManager::colorIsDark in src/
BackgroundImageManager.php - Determines if a color is "dark".
File
- src/
BackgroundImageManagerInterface.php, line 42
Class
Namespace
Drupal\background_imageCode
public function colorIsDark($hex = NULL);