You are here

public function BackgroundImageManagerInterface::colorIsDark in Background Image 8

Same name and namespace in other branches
  1. 2.x src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::colorIsDark()
  2. 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

BackgroundImageManagerInterface

Namespace

Drupal\background_image

Code

public function colorIsDark($hex = NULL);