PHP Conference Japan 2024

UI\Draw\Brush\Gradient::setStop

(UI 2.0.0)

UI\Draw\Brush\Gradient::setStop漸層色階操作

說明

public UI\Draw\Brush\Gradient::setStop(int $index, float $position, UI\Draw\Color $color): bool
public UI\Draw\Brush\Gradient::setStop(int $index, float $position, int $color): bool

參數

index

要設定的漸層點索引

position

漸層點的位置

color

漸層點的顏色,可以是 UI\Draw\Color 或 RRGGBBAA 格式

回傳值

成功與否的指示

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top