HumHub Documentation (unofficial)

Linear
in package
implements FillInterface

AbstractYes

Linear gradient fill.

Table of Contents

Interfaces

FillInterface
Interface for the fill.

Properties

$end  : ColorInterface
$length  : int
$start  : ColorInterface

Methods

__construct()  : mixed
Constructs a linear gradient with overall gradient length, and start and end shades, which default to 0 and 255 accordingly.
getColor()  : ColorInterface
Gets color of the fill for the given position.
getEnd()  : ColorInterface
getStart()  : ColorInterface
getDistance()  : int
Get the distance of the position relative to the beginning of the gradient.

Properties

Methods

getDistance()

Get the distance of the position relative to the beginning of the gradient.

protected abstract getDistance(PointInterface $position) : int
Parameters
$position : PointInterface
Return values
int

        
On this page

Search results