Learn R Programming

RGtk2 (version 2.8.7)

cairoRectangle: cairoRectangle

Description

Adds a closed-subpath rectangle of the given size to the current path at position (x, y) in user-space coordinates.

Usage

cairoRectangle(cr, x, y, width, height)

Arguments

Details

This function is logically equivalent to: cr$moveTo(x, y) cr$relLineTo(width, 0) cr$relLineTo(0, height) cr$relLineTo(-width, 0) cr$closePath()