diff options
Diffstat (limited to 'html/en/func/color.html')
-rw-r--r-- | html/en/func/color.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/html/en/func/color.html b/html/en/func/color.html index 8efd8a4..fbd4b52 100644 --- a/html/en/func/color.html +++ b/html/en/func/color.html @@ -52,8 +52,9 @@ cd.DecodeColor(color: lightuserdata) -> (r, g, b: number) [in Lua]</pre> cd.EncodeAlpha(color: lightuserdata, alpha: number) -> (color: lightuserdata) [in Lua]</pre> <p>Returns the given color coded with the alpha information. ATENTION: At 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> + moment only the <a href="../drv/cairo.html">Cairo</a>, + <a href="../drv/gdiplus.html">GDI+</a>, <a href="../drv/xrender.html">XRender</a> + and <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> |