protected function buildDiamondShape($width, $height) { $halfWidth = $width / 2; $halfHeight = $height / 2; return "{$halfWidth}, 0, {$width}, {$halfHeight}, {$halfWidth}, {$height}, 0, {$halfHeight}"; }