php8.5
Home/ Manual/ draw / brush/ UI\Draw\Brush::setColor

UI\Draw\Brush::setColor

PHP function Edit on GitHub ✎

(UI 0.9.9)

Set Color

Description

UI\Draw\Brush::setColor(UI\Draw\Color $color): void
UI\Draw\Brush::setColor(int $color): void

Shall set the color of this brush to the color provided

Parameters

color

Can be a UI\Draw\Color or RRGGBBAA

Return Values

Source: reference/ui/ui/draw/brush/setcolor.xml · from the official PHP manual (php/doc-en)