php8.5
Home/ Manual/ text / layout/ UI\Draw\Text\Layout::setColor

UI\Draw\Text\Layout::setColor

PHP function Edit on GitHub ✎

(UI 0.9.9)

Set Color

Description

UI\Draw\Text\Layout::setColor(UI\Draw\Color $color, int $start = 0, [int $end])
UI\Draw\Text\Layout::setColor(int $color, int $start = 0, [int $end])

Shall set the Color for all of, or a range of the text in the Layout

Parameters

color

The color to use

start

The starting character

end

The ending character, by default the end of the string

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