Same name and namespace in other branches
- 8.x-2.x src/ColorCMYK.php \Drupal\color_field\ColorCMYK::__construct() 1 comment
Create a new CMYK color.
Parameters
int $cyan: The cyan.
int $magenta: The magenta.
int $yellow: The yellow.
int $key: The key (black).
float $opacity: The opacity.
Overrides ColorCMY::__construct
File
-
src/
ColorCMYK.php, line 33
Class
- ColorCMYK
- ColorCMYK represents the CMYK color format.
Namespace
Drupal\color_fieldCode
public function __construct(int $cyan, int $magenta, int $yellow, int $key, float $opacity) {
parent::__construct($cyan, $magenta, $yellow, $opacity);
$this->key = $key;
}