PHP Class Grafika\DrawingObject\QuadraticBezier

Datei anzeigen Open project: kosinix/grafika

Protected Properties

Property Type Description
$color Grafika\Color Color of curve.
$control array Control point.
$point1 array Starting point.
$point2 array End point.

Public Methods

Method Description
__construct ( array $point1, array $control, array $point2, Color | string $color = '#000000' ) Creates a quadratic bezier. Quadratic bezier has 1 control point.
getColor ( ) : Color
getControl ( ) : array
getPoint1 ( ) : array
getPoint2 ( ) : array

Method Details

__construct() public method

Creates a quadratic bezier. Quadratic bezier has 1 control point.
public __construct ( array $point1, array $control, array $point2, Color | string $color = '#000000' )
$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 Grafika\Color | string Color of the curve. Accepts hex string or a Color object. Defaults to black.

getColor() public method

public getColor ( ) : Color
return Grafika\Color

getControl() public method

public getControl ( ) : array
return array

getPoint1() public method

public getPoint1 ( ) : array
return array

getPoint2() public method

public getPoint2 ( ) : array
return array

Property Details

$color protected_oe property

Color of curve.
protected Color,Grafika $color
return Grafika\Color

$control protected_oe property

Control point.
protected array $control
return array

$point1 protected_oe property

Starting point.
protected array $point1
return array

$point2 protected_oe property

End point.
protected array $point2
return array