3 abstract class PhabricatorLipsumArtist
extends Phobject
{
5 protected function getHSBColor($h, $s, $b) {
15 $q = $b * (1 - $s * $f);
16 $t = $b * (1 - $s * (1 - $f));
51 $cr = (int)round($cr * 255);
52 $cg = (int)round($cg * 255);
53 $cb = (int)round($cb * 255);
55 return ($cr << 16) +
($cg << 8) +
$cb;
58 public function generate($x, $y) {
59 $image = imagecreatetruecolor($x, $y);
60 $this->draw($image, $x, $y);
61 return PhabricatorImageTransformer
::saveImageDataInAnyFormat(
66 abstract protected function draw($image, $x, $y);