Same name in other branches
  1. 8.x-2.x src/ColorBase.php \Drupal\color_field\ColorBase::setOpacity()

Set the opacity.

1 call to ColorBase::setOpacity()
ColorHex::__construct in src/ColorHex.php
Create a new Hex from a string.

File

src/ColorBase.php, line 200

Class

ColorBase
Base color class to ease implementations.

Namespace

Drupal\color_field

Code

public function setOpacity(float $opacity) : void {
    $this->opacity = $opacity;
}