$point1
$point1 : array
Starting point. Array of X Y values.
Class CubicBezier
$color : \Grafika\Color
Color of curve.
__construct(array $point1, array $control1, array $control2, array $point2, \Grafika\Color|string $color = '#000000')
Creates a cubic bezier. Cubic bezier has 2 control points.
array | $point1 | Array of X and Y value for start point. |
array | $control1 | Array of X and Y value for control point 1. |
array | $control2 | Array of X and Y value for control point 2. |
array | $point2 | Array of X and Y value for end point. |
\Grafika\Color|string | $color | Color of the curve. Accepts hex string or a Color object. Defaults to black. |
getColor() : \Grafika\Color
draw(\Grafika\ImageInterface $image) : \Grafika\Gd\Image
\Grafika\ImageInterface | $image |