Type:

(inner) ctxStack :array

Type:

(inner) fillStyle

Properties:

Name

Type

Description

value

color
|
gradient
|
pattern

The color of the drawing. Default value is #000000
A gradient object (linear or radial) used to fill the drawing (not supported by context2d)
A pattern object to use to fill the drawing (not supported by context2d)

Sets or returns the color, gradient, or pattern used to fill the drawing

(inner) beginPath()

(inner) bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)

The bezierCurveTo() method adds a point to the current path by using the specified control points that represent a cubic Bézier curve.

A cubic bezier curve requires three points. The first two points are control points that are used in the cubic Bézier calculation and the last point is the ending point for the curve. The starting point for the curve is the last point in the current path. If a path does not exist, use the beginPath() and moveTo() methods to define a starting point.

Parameters:

Name

Type

Description

cp1x

Number

The x-coordinate of the first Bézier control point

cp1y

Number

The y-coordinate of the first Bézier control point

cp2x

Number

The x-coordinate of the second Bézier control point

cp2y

Number

The y-coordinate of the second Bézier control point

x

Number

The x-coordinate of the ending point

y

Number

The y-coordinate of the ending point

(inner) clearRect(x, y, w, h)

We cannot clear PDF commands that were already written to PDF, so we use white instead.
As a special case, read a special flag (ignoreClearRect) and do nothing if it is set.
This results in all calls to clearRect() to do nothing, and keep the canvas transparent.
This flag is stored in the save/restore context and is managed the same way as other drawing states.

Parameters:

(inner) quadraticCurveTo(cpx, cpy, x, y)

The quadraticCurveTo() method adds a point to the current path by using the specified control points that represent a quadratic Bézier curve.

A quadratic Bézier curve requires two points. The first point is a control point that is used in the quadratic Bézier calculation and the second point is the ending point for the curve. The starting point for the curve is the last point in the current path. If a path does not exist, use the beginPath() and moveTo() methods to define a starting point.