.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "SDL.setTransparency" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" SDL::setTransparency \- Set surface transparency .SH "SYNOPSIS" .B Void setTransparency( \fISDLSurface surface, SDLColour rgba\fP .B ")" .SH "ARGUMENTS" .PP .B "surface" The surface to set .PP .B "rgb" The RGBA value of the transparent pixel. Generally A will be 255 .SH "DESCRIPTION" .PP Select a particular colour on the surface to be considered transparent when copying the surface. .IP "" -4 setTransparency(pic,RGBA(0,255,0,255)); // green is transparent .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.