Border color

Function Prototype

borderColor(int $color): self

borderColorOfTheFourSides(
    int $topColor    = -1,
    int $rightColor  = -1,
    int $bottomColor = -1,
    int $leftColor   = -1
): self

int $color

Set the color of all four border sides at once. Pass a 0xRRGGBB integer or a Format::COLOR_* constant.

int $topColor / $rightColor / $bottomColor / $leftColor

Set the four sides individually. Any argument that is omitted or null keeps the default color for that side.

The border line itself must be configured first through border() or borderOfTheFourSides(); setting only the color will not draw any line.

Example

Last updated