Same name and namespace in other branches
  1. 8.x-2.x src/ColorCMY.php \Drupal\color_field\ColorCMY::__construct() 1 comment

Create a new CMYK color.

Parameters

int $cyan: The cyan.

int $magenta: The magenta.

int $yellow: The yellow.

float $opacity: The opacity.

1 method overrides ColorCMY::__construct()
ColorCMYK::__construct in src/ColorCMYK.php
Create a new CMYK color.

File

src/ColorCMY.php, line 45

Class

ColorCMY
ColorCMY represents the CMY color format.

Namespace

Drupal\color_field

Code

public function __construct(int $cyan, int $magenta, int $yellow, float $opacity) {
    $this->cyan = $cyan;
    $this->magenta = $magenta;
    $this->yellow = $yellow;
    $this->opacity = $opacity;
}