summaryrefslogtreecommitdiff
path: root/html/en/func/color.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/en/func/color.html')
-rw-r--r--html/en/func/color.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/html/en/func/color.html b/html/en/func/color.html
index 9ec9928..8efd8a4 100644
--- a/html/en/func/color.html
+++ b/html/en/func/color.html
@@ -52,12 +52,13 @@ cd.DecodeColor(color: lightuserdata) -&gt; (r, g, b: number) [in Lua]</pre>
cd.EncodeAlpha(color: lightuserdata, alpha: number) -&gt; (color: lightuserdata) [in Lua]</pre>
<p>Returns the given color coded with the alpha information. ATENTION: At the
- moment only the Win32 with GDI+ and the IMAGERGB drivers support alpha
- components in color coding. Se in <a href="../drv/gdiplus.html">Windows Using
- GDI+ Base Driver</a> and <a href="../drv/irgb.html">IMAGERGB driver</a>. The
+ moment only the <a href="../drv/gdiplus.html">Win32 with GDI+</a>, the
+ <a href="../drv/xrender.html">XRender</a> and the <a href="../drv/irgb.html">IMAGERGB</a>
+ drivers support alpha components in color coding. The
internal representation of the component is inverted, because the default value
must be 0 and opaque for backward compatibility, so you should use the <strong>cdDecodeAlpha</strong>
- function ot the <strong>cdAlpha</strong> macro to retrieve the alpha component.</p>
+ function or the <strong>cdAlpha</strong> macro to retrieve the alpha component.
+ 0 is transparent, 255 is opaque.</p>
<pre class="function"><span class="mainFunction">unsigned char <a name="cdDecodeAlpha">cdDecodeAlpha</a>(long int color) [in C]</span>
cd.DecodeAlpha(color: lightuserdata) -&gt; (a: number) [in Lua]</pre>