背景颜色
函数原型
background(int $color, int $pattern = self::PATTERN_SOLID): self
int $color
颜色常量 或 RGB 十六进制值
int $pattern
背景图案样式,默认为实体背景
Example
$format = new \Vtiful\Kernel\Format($fileHandle);
$backgroundStyle = $format->background(
\Vtiful\Kernel\Format::COLOR_RED
)->toResource();
Last updated
Was this helpful?