Background color

Function Prototype

1
background(int $color, int $pattern = self::PATTERN_SOLID): self
Copied!

int $color

color const or RGB hex

int $pattern

pattern style

Example

1
$format = new \Vtiful\Kernel\Format($fileHandle);
2
3
$backgroundStyle = $format->background(
4
\Vtiful\Kernel\Format::COLOR_RED
5
)->toResource();
Copied!
Last modified 2yr ago