- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Class

# Imagine\Image\Fill\Gradient\Horizontal

class Horizontal extends Linear

Horizontal gradient fill

## Methods

| __construct(integer $length, Color $start, Color $end) Constructs a linear gradient with overall gradient length, and start and end shades, which default to 0 and 255 accordingly | from Linear
Color | getColor(PointInterface $position) Gets color of the fill for the given position | from Linear
Color | getStart() | from Linear
Color | getEnd() | from Linear
| getDistance(PointInterface $position) {@inheritdoc} |

## Details

###
in Linear at line 46
`final public __construct(integer $length, Color $start, Color $end)`

Constructs a linear gradient with overall gradient length, and start and end shades, which default to 0 and 255 accordingly

#### Parameters

integer | $length |
Color | $start |
Color | $end |

###
in Linear at line 56
`final public Color getColor(PointInterface $position)`

Gets color of the fill for the given position

#### Parameters

PointInterface | $position |

#### Return Value

Color |

###
in Linear at line 82
`final public Color getStart()`

#### Return Value

Color |

###
in Linear at line 90
`final public Color getEnd()`

#### Return Value

Color |

###
at line 24
`public getDistance(PointInterface $position)`

{@inheritdoc}

#### Parameters

PointInterface | $position |