Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
UI
Installing/Configuring
UI\Point
UI\Size
UI\Window
UI\Control
UI\Menu
UI\MenuItem
UI\Area
UI\Executor
UI\Controls\Tab
UI\Controls\Check
UI\Controls\Button
UI\Controls\ColorButton
UI\Controls\Label
UI\Controls\Entry
UI\Controls\MultilineEntry
UI\Controls\Spin
UI\Controls\Slider
UI\Controls\Progress
UI\Controls\Separator
UI\Controls\Combo
UI\Controls\EditableCombo
UI\Controls\Radio
UI\Controls\Picker
UI\Controls\Form
UI\Controls\Grid
UI\Controls\Group
UI\Controls\Box
UI\Draw\Pen
UI\Draw\Path
UI\Draw\Matrix
UI\Draw\Color
UI\Draw\Stroke
UI\Draw\Brush
UI\Draw\Brush\Gradient
UI\Draw\Brush\LinearGradient
UI\Draw\Brush\RadialGradient
UI\Draw\Text\Layout
UI\Draw\Text\Font
UI\Draw\Text\Font\Descriptor
UI Functions
UI\Draw\Text\Font\Weight
UI\Draw\Text\Font\Italic
UI\Draw\Text\Font\Stretch
UI\Draw\Line\Cap
UI\Draw\Line\Join
UI\Key
UI\Exception\InvalidArgumentException
UI\Exception\RuntimeException
UI\Draw\Brush\Gradient::setStop
UI\Draw\Brush\LinearGradient::__construct
UI
Last updated: Mon, 26 Oct 2026
Linear Gradient
(UI 2.0.0)
Introduction
Class synopsis
class
UI\Draw\Brush\LinearGradient
extends
UI\Draw\Brush\Gradient
{
/* Constructor */
public
function
__construct
(
UI\Point
$start
,
UI\Point
$end
)
/* Inherited methods */
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
public
function
UI\Draw\Brush\Gradient::delStop
(
int
$index
):
int
public
function
UI\Draw\Brush\Gradient::setStop
(
int
$index
,
float
$position
,
UI\Draw\Color
$color
):
bool
public
function
UI\Draw\Brush\Gradient::setStop
(
int
$index
,
float
$position
,
int
$color
):
bool
}
Table of Contents
UI\Draw\Brush\LinearGradient::__construct
— Construct a Linear Gradient
UI\Draw\Brush\Gradient::setStop
UI\Draw\Brush\LinearGradient::__construct
UI
Last updated: Mon, 26 Oct 2026