You are here

public function ColorBase::setOpacity in Color Field 8.2

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 30

Class

ColorBase
Base color class to ease implementations.

Namespace

Drupal\color_field

Code

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