Property | Type | Description | |
---|---|---|---|
$color | Color of curve. | ||
$control1 | array | Control point 1. Array of X Y values. | |
$control2 | array | Control point 2. Array of X Y values. | |
$point1 | array | Starting point. Array of X Y values. | |
$point2 | array | End point. Array of X Y values. |
Method | Description | |
---|---|---|
__construct ( array $point1, array $control1, array $control2, array $point2, |
Creates a cubic bezier. Cubic bezier has 2 control points. | |
getColor ( ) : |
||
getControl1 ( ) : array | ||
getControl2 ( ) : array | ||
getPoint1 ( ) : array | ||
getPoint2 ( ) : array |
public __construct ( array $point1, array $control1, array $control2, array $point2, |
||
$point1 | array | Array of X and Y value for start point. |
$control1 | array | Array of X and Y value for control point 1. |
$control2 | array | Array of X and Y value for control point 2. |
$point2 | array | Array of X and Y value for end point. |
$color | Color of the curve. Accepts hex string or a Color object. Defaults to black. |
protected array $control1 | ||
return | array |
protected array $control2 | ||
return | array |
protected array $point1 | ||
return | array |