function __construct() { parent::__construct(); $this->startTime = gettimeofday(true); $message = " --- POWERED BY LIBCACA --- OLDSCHOOL TEXT EFFECTS ARE 100% PURE WIN"; $this->scroll = new Canvas(strlen($message), 1); $this->scroll->setColorAnsi(AnsiColor::WHITE, AnsiColor::TRANSPARENT); $this->scroll->putStr(0, 0, $message); $fontList = Font::getList(); $f = new Font($fontList[1]); $w = $f->getWidth() * strlen($message); $h = $f->getHeight(); $this->image = imagecreatetruecolor($w, $h); imagealphablending($this->image, false); imagesavealpha($this->image, true); $this->d = new Dither($this->image); $f->Render($this->scroll, $this->image); }