Lines Matching defs:round
291 * Same round instructions than SCSS to be able to do the test
296 private static function round(float $value): float
300 return round($value, 0, PHP_ROUND_HALF_DOWN);
302 return round($value, 0, PHP_ROUND_HALF_UP);
406 * No round to get a neat inverse
437 $targetRed = self::round(Math::lerp($color2->getRed(), $this->getRed(), $weight));
438 $targetGreen = self::round(Math::lerp($color2->getGreen(), $this->getGreen(), $weight));
439 $targetBlue = self::round(Math::lerp($color2->getBlue(), $this->getBlue(), $weight));
454 $targetRed = self::round(Math::unlerp($color2->getRed(), $this->getRed(), $weight));
458 $targetGreen = self::round(Math::unlerp($color2->getGreen(), $this->getGreen(), $weight));
462 $targetBlue = self::round(Math::unlerp($color2->getBlue(), $this->getBlue(), $weight));