Property | Type | Description | |
---|---|---|---|
$color | Color of curve. | ||
$control | array | Control point. | |
$point1 | array | Starting point. | |
$point2 | array | End point. |
Method | Description | |
---|---|---|
__construct ( array $point1, array $control, array $point2, |
Creates a quadratic bezier. Quadratic bezier has 1 control point. | |
getColor ( ) : |
||
getControl ( ) : array | ||
getPoint1 ( ) : array | ||
getPoint2 ( ) : array |
public __construct ( array $point1, array $control, array $point2, |
||
$point1 | array | Array of X and Y value for start point. |
$control | array | Array of X and Y value for control point. |
$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. |