class Horizontal extends Linear
Horizontal gradient fill
Methods
__construct(integer $length, ColorInterface $start, ColorInterface $end)
Constructs a linear gradient with overall gradient length, and start and end shades, which default to 0 and 255 accordingly |
from Linear | |
ColorInterface |
getColor(PointInterface $position)
Gets color of the fill for the given position |
from Linear |
ColorInterface |
getStart()
|
from Linear |
ColorInterface |
getEnd()
|
from Linear |
getDistance(PointInterface $position)
{@inheritdoc} |
Details
in Linear at line 46
final public
__construct(integer $length, ColorInterface $start, ColorInterface $end)
Constructs a linear gradient with overall gradient length, and start and end shades, which default to 0 and 255 accordingly
in Linear at line 56
final public ColorInterface
getColor(PointInterface $position)
Gets color of the fill for the given position
in Linear at line 74
final public ColorInterface
getStart()
in Linear at line 82
final public ColorInterface
getEnd()
at line 24
public
getDistance(PointInterface $position)
{@inheritdoc}