blob: 24db26a6345a2158f392ea66c7394cc73c959cd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<refentry id="cairo_set_rgb_color">
<refmeta>
<refentrytitle>cairo_set_rgb_color</refentrytitle>
<manvolnum>3</manvolnum>
</refmeta>
<refnamediv>
<refname>cairo_set_rgb_color</refname>
<refpurpose>select color for painting operations</refpurpose>
</refnamediv>
<refsynopsisdiv>
<programlisting>
void cairo_set_rgb_color (<link linkend="cairo_t">cairo_t</link> *cr, double red, double green, double blue)</programlisting>
<variablelist role="params">
<varlistentry>
<term><parameter>cr</parameter> :</term>
<listitem>
<simpara>a <link linkend="cairo_t">cairo_t</link></simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>red</parameter> :</term>
<listitem>
<simpara>red component</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>green</parameter> :</term>
<listitem>
<simpara>green component</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>blue</parameter> :</term>
<listitem>
<simpara>blue component</simpara>
</listitem>
</varlistentry>
</variablelist>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
<indexterm>
<primary>functions</primary>
<secondary>cairo_set_rgb_color</secondary>
</indexterm>
<indexterm>
<primary/>
</indexterm>
Set the color for subsequent drawing operations. Values which are not between 0.0 and 1.0 will be changed (e.g. red=2.0 => red=1.0).
</para>
</refsect1>
</refentry>
|