<?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=LlGetColor</id>
	<title>LlGetColor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetColor"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetColor&amp;action=history"/>
	<updated>2026-10-25T11:11:51Z</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=LlGetColor&amp;diff=128&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: vector llGetColor( integer face );== Returns a vector that is the color on face. &lt;br&gt; • integer 	face 	– 	face number or ALL_SIDES  &lt;br&gt; &lt;br&gt;	 If face is [...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetColor&amp;diff=128&amp;oldid=prev"/>
		<updated>2017-12-31T22:16:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: vector llGetColor( integer face );== Returns a vector that is the color on 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 [...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: vector llGetColor( integer face );==&lt;br /&gt;
Returns a vector that is the color on 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 average color of all the faces on the prim.[1] &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 &amp;lt;0.0, 0.0, 0.0&amp;gt; &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 color 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;
            llOwnerSay(&amp;quot;Face &amp;quot; + (string) i + &amp;quot; color is &amp;quot; + (string) llGetColor(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;
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;
•  	[[llGetAlpha]] 	– 	Gets the prim&amp;#039;s alpha 	 &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llSetAlpha]] 	– 	Sets the prim&amp;#039;s alpha 	 &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;&amp;lt;br&amp;gt;&lt;br /&gt;
Deep Notes &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Footnotes&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
1. ^ Since sRGB is nonlinear this color may not in fact be of the greatest use.  &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>