Vertical
class Vertical extends Linear
Vertical gradient fill.
Methods
__construct(int $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
from Linear
int
getDistance(PointInterface $position)
Get the distance of the position relative to the beginning of the gradient.
Details
in Linear at line 46
final
__construct(int $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 58
final ColorInterface
getColor(PointInterface $position)
Gets color of the fill for the given position.
in Linear at line 76
final ColorInterface
getStart()
in Linear at line 84
final ColorInterface
getEnd()
at line 26
int
getDistance(PointInterface $position)
Get the distance of the position relative to the beginning of the gradient.