\Kendo\Dataviz\UI\DiagramShapeFillGradientStop
A PHP class representing the stop setting of DiagramShapeFillGradientStops.
Methods
color
The color in any of the following formats:| Format | Description | --- | --- | --- | red | Basic or Extended CSS Color name | #ff0000 | Hex RGB value | rgb(255, 0, 0) | RGB valueSpecifying 'none', 'transparent' or '' (empty string) will clear the fill.
Returns
\Kendo\Dataviz\UI\DiagramShapeFillGradientStop
Parameters
$value string
Example
<?php
$stop = new \Kendo\Dataviz\UI\DiagramShapeFillGradientStop();
$stop->color('value');
?>
offset
The stop offset from the start of the element. Ranges from 0 (start of gradient) to 1 (end of gradient).
Returns
\Kendo\Dataviz\UI\DiagramShapeFillGradientStop
Parameters
$value float
Example
<?php
$stop = new \Kendo\Dataviz\UI\DiagramShapeFillGradientStop();
$stop->offset(1);
?>
opacity
The fill opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).
Returns
\Kendo\Dataviz\UI\DiagramShapeFillGradientStop
Parameters
$value float
Example
<?php
$stop = new \Kendo\Dataviz\UI\DiagramShapeFillGradientStop();
$stop->opacity(1);
?>