/** * @param Stem $stemOne * @param Stem $stemTwo */ protected function drawComparison(Stem $stemOne, Stem $stemTwo, HeadTube $headTube) { $comparison = $stemOne->compare($stemTwo, $headTube); $line = 1; $color = imagecolorallocate($this->image, 255, 255, 255); foreach ($comparison as $text) { imagettftext($this->image, 12, 0, 5, $line * 20, $color, $this->fontPath, $text); $line++; } }