<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetAlpha</id>
	<title>LlGetAlpha - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetAlpha"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetAlpha&amp;action=history"/>
	<updated>2026-10-25T11:12:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlGetAlpha&amp;diff=119&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: float llGetAlpha( integer face );== Returns a float that is the alpha of face. &lt;br&gt; • integer 	face 	– 	face number or ALL_SIDES 	 &lt;br&gt; &lt;br&gt; If face is A...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetAlpha&amp;diff=119&amp;oldid=prev"/>
		<updated>2017-12-31T22:02:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: float llGetAlpha( integer face );== Returns a float that is the alpha of face. &amp;lt;br&amp;gt; • integer 	face 	– 	face number or &lt;a href=&quot;/index.php?title=ALL_SIDES&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;ALL SIDES (page does not exist)&quot;&gt;ALL_SIDES&lt;/a&gt; 	 &amp;lt;br&amp;gt; &amp;lt;br&amp;gt; If face is A...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: float llGetAlpha( integer face );==&lt;br /&gt;
Returns a float that is the alpha of face. &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	face 	– 	face number or [[ALL_SIDES]] 	 &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
If face is [[ALL_SIDES]] then the function returns the sum of alpha of all the faces on the prim. &amp;lt;br&amp;gt;&lt;br /&gt;
The return is in the range [0, 1] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Caveats&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
• If face indicates a face that does not exist the return is 0.0  &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
//Tells the owner the alpha on all sides&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        integer i = 0;&lt;br /&gt;
        integer max = llGetNumberOfSides();&lt;br /&gt;
        while(i &amp;lt; max)&lt;br /&gt;
        {&lt;br /&gt;
            llSay(0,&amp;quot;Face &amp;quot;+(string)i+&amp;quot; alpha is &amp;quot; + (string)llGetAlpha(i));&lt;br /&gt;
            ++i;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Useful Snippets&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
float AveragePrimAlpha()&lt;br /&gt;
{//Since this is so simple you may just want to inline it instead of including the function.&lt;br /&gt;
    return (llGetAlpha(ALL_SIDES) / llGetNumberOfSides());&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See Also &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llSetAlpha]] 	– 	Sets the prim&amp;#039;s alpha 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetColor]] 	– 	Gets the prim&amp;#039;s color 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llSetColor]] 	– 	Sets the prim&amp;#039;s color 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llSetLinkColor]] 	– 	Sets link&amp;#039;s color 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llSetLinkAlpha]] 	– 	Sets link&amp;#039;s alpha  &amp;lt;br&amp;gt;	&lt;br /&gt;
•  	[[llGetNumberOfSides]] 	– 	Gets the number of faces on the prim 	 &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>