php8.5
Home/ Manual/ draw / brush.gradient/ UI\Draw\Brush\Gradient::setStop

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

index

The index of the stop to set

position

The position for the stop

color

The color for the stop, may be UI\Draw\Color or RRGGBBAA

Return Values

Indication of success

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