Name
ccontext:Rectangle -- add rectangle to path
Synopsis
ccontext:Rectangle(x, y, width, height)
Function
Adds a closed sub-path rectangle of the given size to the current path at position (x, y) in user-space coordinates.

This function is logically equivalent to:

 
cr:MoveTo(x, y)
cr:RelLineTo(width)
cr:RelLineTo(0, height)
cr:RelLineTo(-width, 0)
cr:ClosePath()

Inputs
x
the X coordinate of the top left corner of the rectangle
y
the Y coordinate to the top left corner of the rectangle
width
the width of the rectangle
height
the height of the rectangle

Show TOC