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

UI\Draw\Brush::__construct

PHP function Edit on GitHub ✎

(UI 0.9.9)

Construct a new Brush

Description

UI\Draw\Brush::__construct(UI\Draw\Color $color)
UI\Draw\Brush::__construct(int $color)

Shall construct a solid brush using the given color

Parameters

color

Can be a UI\Draw\Color or RRGGBBAA

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