$colorStops
$colorStops :
An Apple News Document LinearGradientFill.
__construct(array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop $colorStops)
Implements __construct().
array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop | $colorStops | URL. |
setColorStops(array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop $items) : $this
Setter for url.
array|\ChapterThree\AppleNewsAPI\Document\Styles\Fills\Gradients\ColorStop | $items | An array of color stops. Each stop sets a color and percentage. |
setAngle(float $value) : $this
Setter for angle.
float | $value | The angle of the gradient fill, in degrees Use the angle to set the direction of the gradient. For example, a value of 180 defines a gradient that changes color from top to bottom. An angle of 90 defines a gradient that changes color from left to right. If angle is omitted, an angle of 180 (top to bottom) is used. |
isUnitInterval(float|integer $value) : boolean
Helper function to determine if a value is a unit interval.
A unit interval is the closed interval [0,1], that is, the set of all real numbers that are greater than or equal to 0 and less than or equal to 1.
float|integer | $value | Value. |
Result.