\Grafika\Imagick\DrawingObjectCubicBezier

Class CubicBezier

Summary

Methods
Properties
Constants
__construct()
getPoint1()
getControl1()
getControl2()
getPoint2()
getColor()
draw()
No public properties found
No constants found
No protected methods found
$point1
$control1
$control2
$point2
$color
N/A
No private methods found
No private properties found
N/A

Properties

$point1

$point1 : array

Starting point. Array of X Y values.

Type

array

$control1

$control1 : array

Control point 1. Array of X Y values.

Type

array

$control2

$control2 : array

Control point 2. Array of X Y values.

Type

array

$point2

$point2 : array

End point. Array of X Y values.

Type

array

Methods

__construct()

__construct(array  $point1, array  $control1, array  $control2, array  $point2, \Grafika\Color|string  $color = '#000000') 

Creates a cubic bezier. Cubic bezier has 2 control points.

Parameters

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.

getPoint1()

getPoint1() : array

Returns

array

getControl1()

getControl1() : array

Returns

array

getControl2()

getControl2() : array

Returns

array

getPoint2()

getPoint2() : array

Returns

array