« UI\Draw\Brush\Gradient
UI\Draw\Brush\Gradient::delStop »

UI\Draw\Brush\Gradient::addStop

(UI 2.0.0)

UI\Draw\Brush\Gradient::addStop — Stop Manipulation

説明

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

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

パラメータ

position

The position for the new stop

color

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

戻り値

Total number of stops

関連キーワード:
Draw   Brush   Gradient   position   color   addStop   Stop   Manipulation   stop   float   Color   given   delStop   Total   number   stops
関連する関数・ページ:
class.ui-draw-brush-gradient   ui-draw-brush-gradient.setstop   ui-draw-brush-gradient.delstop   class.ui-draw-brush-lineargradient   class.ui-draw-brush-radialgradient   ui-draw-brush.setcolor