lineStrength($lineStrength); $this->colorReductionLevel($colorReduction); } /** * Sets the thickness of the lines. * * @param float $lineStrength The thickness of the lines. (Range: 0 to 100, Server default: 50) * * @return Cartoonify */ public function lineStrength($lineStrength) { $this->value->setSimpleValue('line_strength', $lineStrength); return $this; } /** * Sets the decrease in the number of colors and corresponding saturation boost of the remaining colors. * * @param float|string $colorReduction The decrease in the number of colors and corresponding saturation boost of * the remaining colors. (Range: 0 to 100). Higher reduction values * result in a less realistic look. Set $colorReduction to * Cartoonify::BLACK_WHITE for a black and white cartoon effect. * * @return Cartoonify */ public function colorReductionLevel($colorReduction) { $this->value->setSimpleValue('color_reduction', $colorReduction); return $this; } /** * Creates a black and white cartoon effect. * * @return Cartoonify */ public function blackWhite() { return $this->colorReductionLevel(self::BLACK_WHITE); } }