Gradient
class Gradient extends ConfigObject (View source)
Properties
int | $color1 | Start color for gradient. | |
int | $color2 | Finish color for gradient. | |
array | $x1 | Where on the boundary to start in X. | |
array | $y1 | Where on the boundary to start in Y. | |
array | $x2 | Where on the boundary to finish, relative to $x1. | |
array | $y2 | Where on the boundary to finish, relative to $y1. |
Methods
Builds the gradient object with specified options
Returns an array representation of the object.
Same as toArray, but without the class name as a key to being multi-dimension.
Details
at line 72
mixed
__construct(
array $config = array())
Builds the gradient object with specified options
in
ConfigObject at line 93
array
toArray(
string $keyName = null)
Returns an array representation of the object.
If passed a label, then the array will be returned with the label as the key.
Called with no label returns an array with the classname as the key.
in
ConfigObject at line 115
array
getValues()
Same as toArray, but without the class name as a key to being multi-dimension.
at line 83
Gradient
color1(
string $color1)
If present, specifies the start color for the gradient.
at line 103
Gradient
color2(
string $color2)
If present, specifies the finish color for the gradient.
at line 123
Gradient
x1(
string $x1)
Sets where on the boundary to start in X.
at line 143
Gradient
y1(
string $y1)
Sets where on the boundary to start in Y.
at line 163
Gradient
x2(
string $x2)
Sets where on the boundary to end in X, relative to x1.
at line 183
Gradient
y2(
string $y2)
Sets where on the boundary to end in Y, relative to y1.