Lines Matching refs:percentage
456 throw new ExceptionCompile("This is not possible, the red value ({$color2->getBlue()}) with the percentage $weight could not be unmixed. They were not calculated with color mixing.");
460 throw new ExceptionCompile("This is not possible, the green value ({$color2->getGreen()}) with the percentage $weight could not be unmixed. They were not calculated with color mixing.");
464 throw new ExceptionCompile("This is not possible, the blue value ({$color2->getBlue()}) with the percentage $weight could not be unmixed. They were not calculated with color mixing.");
623 * @var int $percentage between 0 and 100
626 function shade(int $percentage): ColorRgb
629 return $this->mix('black', $percentage);
644 * @param int $percentage between -100 and 100
648 function scale(int $percentage): ColorRgb
650 if ($percentage === 0) {
653 if ($percentage > 0) {
654 return $this->shade($percentage);
656 return $this->tint(abs($percentage));
669 * @param int $percentage between 0 and 100
673 function tint(int $percentage): ColorRgb
676 return $this->mix("white", $percentage);
679 LogUtility::msg("Error while tinting ($this) with a percentage ($percentage. Error: {$e->getMessage()}");