Searched refs:temp1 (Results 1 – 1 of 1) sorted by relevance
134 $temp1 = 2.0 * $L - $temp2;136 $r = self::calculateRGBComponent($H + 1 / 3, $temp1, $temp2);137 $g = self::calculateRGBComponent($H, $temp1, $temp2);138 $b = self::calculateRGBComponent($H - 1 / 3, $temp1, $temp2);168 * @param float $temp1 The first temporary variable used in the conversion process173 protected static function calculateRGBComponent(float $comp, float $temp1, float $temp2): float argument180 if (6 * $comp < 1) return $temp1 + ($temp2 - $temp1) * 6 * $comp;182 if (3 * $comp < 2) return $temp1 + ($temp2 - $temp1) * ((2 / 3) - $comp) * 6;185 return $temp1;