public function effect($mode = self::EFFECT_COLORLOOP)
{
// Don't continue if mode is not valid
if (!in_array($mode, self::getEffectModes())) {
throw new \InvalidArgumentException("{$mode} is not a valid effect modes");
}
$this->params['effect'] = $mode;
return $this;
}