function __construct($options = array())
{
// Set string if provided. If not, set default.
if (isset($options['string'])) {
$this->setString($options['string']);
} else {
$this->setString(time());
}
// Set base color if provided. If not, set default.
if (isset($options['baseColor'])) {
$this->setBaseColor($options['baseColor']);
} else {
$this->setBaseColor('#933c3c');
}
// Set color if provided.
if (isset($options['color'])) {
$this->setColor($options['color']);
}
// Set generator if provided. If not, leave null.
if (isset($options['generator'])) {
$this->setGenerator($options['generator']);
}
$this->svg = new SVG();
}