Name
ccontext:SetSourceRGB -- set source RGB
Synopsis
ccontext:SetSourceRGB(red, green, blue)
Function
Sets the source pattern within the context to an opaque color. This opaque color will then be used for any subsequent drawing operation until a new source pattern is set.

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.

The default source pattern is a solid pattern that is opaque black, that is, it is equivalent to ccontext:SetSourceRGB() with the arguments all set to 0.0.

Inputs
red
red component of color
green
green component of color
blue
blue component of color

Show TOC