This class is used to manipulate color
Since: 0.1
Author: Gabriel Couto @gabrielrcouto
Exemple #1
0
 /**
  * Set the font Color
  *
  * @param string $color Color '#123456'
  *
  * @return self
  */
 public function setFontColor($color)
 {
     $this->set('font.color', Color::toLazarus($color));
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function setBackgroundColor($color)
 {
     $this->set('color', Color::toLazarus($color));
     return $this;
 }
Exemple #3
0
 /**
  * Sets the pixel color
  *
  * @param int $x
  * @param int $x
  * @param string $color
  *
  * @return self
  */
 public function setPixel($x, $y, $color)
 {
     $this->call('picture.bitmap.canvas.setPixel', [$x, $y, Color::toLazarus($color)], $isCommand = false);
     return $this;
 }
Exemple #4
0
 /**
  * Set the border Color
  *
  * @param string $color Color '#123456'
  *
  * @return self
  */
 public function setBorderColor($color)
 {
     $this->set('pen.color', Color::toLazarus($color));
     return $this;
 }