trait BackgroundTrait

Trait BackgroundTrait

Methods

background(Background|ColorValue|string $background)

Sets the background.

Details

$this background(Background|ColorValue|string $background)

Sets the background.

The image background is visible when padding is added with one of the padding crop modes, when rounding corners, when adding overlays, and with semi-transparent PNGs and GIFs.

Parameters

Name Type Description
$background Background|ColorValue|string The the background to set.

Return Value

$this

See also

Background