编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « UI\Draw\Brush\Gradient
  • UI\Draw\Brush\Gradient::delStop »
  • PHP Manual
  • UI\Draw\Brush\Gradient
  • Stop Manipulation

UI\Draw\Brush\Gradient::addStop

(PHP 7, UI 2.0.0)

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

说明

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

Shall at 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

相关文章
php ui gradient brushesphp ui linear gradientphp ui draw brush gradient stop manipulationphp ui draw brush gradient stop manipulationphp ui draw brush gradient stop manipulationphp ui draw brush lineargradient construct a linear gradientphp ui draw brush radialgradient construct a new radial gradientphp ui draw brush construct a new brushphp ui draw brush get colorphp ui draw brush set colorphp ui draw color color manipulationphp ui draw color color manipulationphp ui draw matrix invert matrixphp ui draw matrix invertible detectionphp ui draw path draw figure with arcphp ui draw pen clip a pathphp ui draw pen fill a pathphp ui draw stroke set thicknessphp ui draw text font descriptor construct a new font descriptorphp ui executor stop executor
关注编程学问公众号
编程学问网 湘ICP备20001732号