« UI\Draw\Brush::setColor
UI\Draw\Brush\Gradient::addStop »
PHP Manual
UI
Градиентные кисти
Градиентные кисти
(UI 2.0.0)
Введение
Абстрактный класс для градиентных кистей
Обзор класса
abstract
class
UI\Draw\Brush\Gradient
extends
UI\Draw\Brush
{
/* Методы */
public
addStop
(
float
$position
,
UI\Draw\Color
$color
):
int
public
addStop
(
float
$position
,
int
$color
):
int
public
delStop
(
int
$index
):
int
public
setStop
(
int
$index
,
float
$position
,
UI\Draw\Color
$color
):
bool
public
setStop
(
int
$index
,
float
$position
,
int
$color
):
bool
/* Наследуемые методы */
public
UI\Draw\Brush::getColor
():
UI\Draw\Color
public
UI\Draw\Brush::setColor
(
UI\Draw\Color
$color
):
void
public
UI\Draw\Brush::setColor
(
int
$color
):
void
}
Содержание
UI\Draw\Brush\Gradient::addStop
— Добавляет узел градиента
UI\Draw\Brush\Gradient::delStop
— Удаляет узел градиента
UI\Draw\Brush\Gradient::setStop
— Устанавливает узел градиента