Learn R Programming

RGtk2 (version 2.8.7)

cairoSetSourceRgb: cairoSetSourceRgb

Description

Sets the source pattern within cr to an opaque color. This opaque color will then be used for any subsequent drawing operation until a new source pattern is set.

Usage

cairoSetSourceRgb(cr, red, green, blue)

Arguments

Details

The color components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped.