$color
$color :
An Apple News Document GradientFill.
setLocation(float $value) : $this
Setter for location.
float | $value | An optional location of the color stop within the gradient, as a percentage of the gradient size. If location is omitted, the length of the stop is calculated by first subtracting color stops with specified locations from the full length, then equally distributing the remaining length. |
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.