php8.5
Home/ Manual/ draw / color/ UI\Draw\Color::setChannel

UI\Draw\Color::setChannel

PHP function Edit on GitHub ✎

(UI 0.9.9)

Color Manipulation

Description

UI\Draw\Color::setChannel(int $channel, float $value): void

Shall set the selected channel to the given value

Parameters

channel

Constant channel identity

value

The new value for the selected channel

Return Values

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