1 | <?php |
||
13 | class UniformGradient extends Gradient |
||
14 | { |
||
15 | |||
16 | public function getName() |
||
20 | |||
21 | public static function gradient(ElementInterface $svg, array $colors, $id = null, $gradientType = 'linear') |
||
44 | |||
45 | public static function verticalFromTop(ContainerInterface $container, array $colors, $id = null) |
||
49 | |||
50 | public static function verticalFromBottom(ContainerInterface $container, array $colors, $id = null) |
||
54 | |||
55 | public static function diagonalFromTopLeft(ContainerInterface $container, array $colors, $id = null) |
||
59 | |||
60 | public static function diagonalFromBottomRight(ContainerInterface $container, array $colors, $id = null) |
||
64 | |||
65 | public static function diagonalFromBottomLeft(ContainerInterface $container, array $colors, $id = null) |
||
69 | |||
70 | public static function diagonalFromTopRight(ContainerInterface $container, array $colors, $id = null) |
||
74 | |||
75 | public static function horizontalFromLeft(ContainerInterface $container, array $colors, $id = null) |
||
79 | |||
80 | public static function horizontalFromRight(ContainerInterface $container, array $colors, $id = null) |
||
84 | |||
85 | public static function radialTopLeft(ContainerInterface $container, array $colors, $id = null) |
||
89 | |||
90 | |||
91 | public static function radialTopRight(ContainerInterface $container, array $colors, $id = null) |
||
95 | |||
96 | public static function radialBottomLeft(ContainerInterface $container, array $colors, $id = null) |
||
100 | |||
101 | public static function radialBottomRight(ContainerInterface $container, array $colors, $id = null) |
||
105 | |||
106 | public static function radialTopCenter(ContainerInterface $container, array $colors, $id = null) |
||
110 | |||
111 | public static function radialLeftCenter(ContainerInterface $container, array $colors, $id = null) |
||
115 | |||
116 | public static function radialBottomCenter(ContainerInterface $container, array $colors, $id = null) |
||
120 | |||
121 | public static function radialRightCenter(ContainerInterface $container, array $colors, $id = null) |
||
125 | |||
126 | /** |
||
127 | * @param ElementInterface $svg |
||
128 | * @param $id |
||
129 | * @param $gradientType |
||
130 | * |
||
131 | * @return LinearGradient|RadialGradient |
||
132 | */ |
||
133 | private static function getGradient(ElementInterface $svg, $id, $gradientType) |
||
137 | } |