Learn R Programming

RGtk2 (version 2.8.8)

cairoClosePath: cairoClosePath

Description

Adds a line segment to the path from the current point to the beginning of the current subpath, (the most recent point passed to cairoMoveTo), and closes this subpath.

Usage

cairoClosePath(cr)

Arguments

cr
[Cairo] a cairo context

Details

The behavior of cairoClosePath is distinct from simply calling cairoLineTo with the equivalent coordinate in the case of stroking. When a closed subpath is stroked, there are no caps on the ends of the subpath. Instead, their is a line join connecting the final and initial segments of the subpath.