UI\Draw\Brush\Gradient::setStop
PHP function
Edit on GitHub ✎
(UI 2.0.0)
Stop Manipulation
Description
UI\Draw\Brush\Gradient::setStop(int $index, float $position, UI\Draw\Color $color): bool
UI\Draw\Brush\Gradient::setStop(int $index, float $position, int $color): bool
Parameters
indexThe index of the stop to set
positionThe position for the stop
colorThe color for the stop, may be UI\Draw\Color or RRGGBBAA
Return Values
Indication of success