« 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   Gradient   position   color   addStop   Stop   stop   float   Color   delStop   number
関連する関数・ページ:
class.ui-draw-brush-gradient   ui-draw-brush-gradient.setstop   class.ui-draw-brush-lineargradient   class.ui-draw-brush-radialgradient   ui-draw-brush-gradient.delstop   ui-draw-brush.setcolor