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

UI\Draw\Brush\Gradient::addStop

PHP function Edit on GitHub ✎

(UI 2.0.0)

Stop Manipulation

Description

UI\Draw\Brush\Gradient::addStop(float $position, UI\Draw\Color $color): int
UI\Draw\Brush\Gradient::addStop(float $position, int $color): int

Shall add a stop of the given color at the given position

Parameters

position

The position for the new stop

color

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

Return Values

Total number of stops

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