Skip to content
lsl.devlsl.devLSL Dev

LlGetColor

Looking for the current API? Open the llGetColor reference →

Return value notes

Returns a vector that is the Blinn-Phong color on face.

Examples

// Tells the owner the color on all sides
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llOwnerSay("Face " + (string) i + " color is " + (string) llGetColor(i));
            ++i;
        }
    }
}

See also: functions

Shared wiki helpers

The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.

Template:LSL VR

Original shared helper source (conditional wiki logic is not evaluated)
&lt;{{{1}}}{{#if:{{{2|}}}|, {{{2}}}{{#if:{{{3|}}}|, {{{3}}}{{#if:{{{4|}}}|, {{{4}}}{{#if:{{{5|}}}|, {{{5}}}}}}}}}}}&gt;

Template:Footnote

Original shared helper source (conditional wiki logic is not evaluated)
<includeonly>{{#if:{{#if:{{{handle|}}}|{{#if:{{#var:fnu_{{{handle|}}}}}||{{{1|}}}}}|{{{1|}}}}}|{{#vardefine:footnotes|{{#var:footnotes}}
<li id="footnote_{{#vardefineecho:footnotescount|{{#expr:{{#var:footnotescount}}+1}}}}" style="{{NewStyle|page-break-inside|avoid|moz=*|webkit=*}}"><span class="TablePager_nav">'''[[#fn_{{#var:footnotescount}}|^]]'''</span> {{{1}}}}}{{#vardefineecho:fnu_{{{handle|}}}|{{Footnote/wrap|fn_{{#var:footnotescount}}|[[#footnote_{{#var:footnotescount}}|[{{#var:footnotescount}}]]]|3={{#if:{{{2|}}}|{{{2|}}}|{{{1}}}}}}}}}|{{#if:{{{handle|}}}|{{#var:fnu_{{{handle|}}}}}}}}}</includeonly><noinclude>
{{hint
 |mode=important
 |desc=This is one of the geekiest templates in this Wiki and it's an awesome piece of code.<br>Though finally, the [http://www.mediawiki.org/wiki/Extension:Cite/Cite.php Cite] extension rendered it obsolete. Consider using <nowiki><ref>reference</ref></nowiki> and <nowiki><references /></nowiki> instead of this template.
 }}



Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua{{{{FULLPAGENAME}}|handle=lipsum|http://www.lipsum.com/ Lorem Ipsum - All the facts - Lipsum generator}}{{{{FULLPAGENAME}}|handle=lipsum|http://www.lipsum.com/ Lorem Ipsum - All the facts - Lipsum generator}}{{{{FULLPAGENAME}}|handle=lipsum}}.

{{Footnotes}}

===Syntax===

<pre>
{{Footnote|Footnote text}}                      - Creates a single use footnote
{{Footnote|Footnote text|Hover text}}           - Creates a single use footnote with different hover text
{{Footnote|Footnote text|handle=id}}            - Creates a multi-use footnote
{{Footnote|Footnote text|Hover text|handle=id}} - Creates a multi-use footnote with different hover text
{{Footnote|handle=id}}                          - Inserts a link to a multi-use footnote.
</pre>
'''handle''' needs to be unique to the page, if it is not, later redeclarations will be ignored.

Don't forget to include the <code><nowiki>{{Footnotes}}</nowiki></code> template where you want the table of footnotes. If you want multiple columns of footnotes use <code><nowiki>{{Footnotes|col=number_of_columns}}</nowiki></code>

</noinclude>

Template:LSL Function/face

Original shared helper source (conditional wiki logic is not evaluated)
{{LSL Injection Test}}{{#if:

{{#vardefine:header|{{#var:header}}{{#if:{{{nc|}}}{{#pos:{{#var:moded}}|r}}||{{#switch:{{NAMESPACE}}|Template=|User=|[[Category:LSL Face{{#var:lang}}]][[Category:LSL Face{{#var:lang}}/{{#if:{{{return|}}}{{{returns|}}}|Get|Set}}]]}}}}}}

{{#vardefine:ALL_SIDES|{{LSL Const|ALL_SIDES|integer|-1|hex=0xFFFFFFFF}}}}

{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Face{{#var:lang}}|face}} number{{#ifeq:{{{notall|}}}|*||<nowiki> </nowiki>or {{#var:ALL_SIDES}}}}}}

{{#vardefine:p_{{{1|none}}}_hover|face number{{#ifeq:{{{notall|}}}|*||<nowiki> </nowiki>or ALL_SIDES (-1)}}}}

{{#ifeq:{{{notall|}}}|*||{{#vardefine:facechoise|If {{LSLP|{{{1|none}}}}} is {{#var:ALL_SIDES}} then the {{#if:{{{2|}}}|{{{2|}}}|function}} {{#if:{{{get|}}}|{{{get|}}}|{{#if:{{{ALL_SIDES|}}}|{{{ALL_SIDES|}}}|works on all sides.}}}}}}}}

{{#vardefine:header_footnote|{{#var:header_footnote}}{{#if:{{{!footer|}}}||{{PBR}}
{{#var:facechoise}}{{PBR}}}}}}

{{#vardefine:caveats|{{#var:caveats}}{{#if:{{{!footer|}}}|
*{{#var:facechoise}}|}}{{#if:{{{return|}}}{{{returns|}}}|
*If {{LSLP|{{{1|none}}}}} indicates a face that does not exist the {{#if:{{{2|}}}|{{{2|}}}}} {{#if:{{{return|}}}|return is {{{return|}}}| returns {{{returns|}}}}}|
*The {{#if:{{{2|}}}|{{{2|}}}|function}} silently fails if its {{LSLP|{{{1|none}}}}} value indicates a face that does not exist.}}}}

}}<noinclude>
{| {{Prettytable}}
|-{{Hl2}}
! #var
! value
|-
{{VarPair|ALL_SIDES}}
|-
{{VarPair|p_{{{1|none}}}_desc}}
|-
{{VarPair|p_{{{1|none}}}_hover}}
|-
{{VarPair|facechoise}}
|-
{{VarPair|header_footnote}}
|-
{{VarPair|caveats}}
|}
</noinclude>

Template:LSL Function/color

Original shared helper source (conditional wiki logic is not evaluated)
{{LSL Injection Test}}{{#if:

{{#vardefine:p_{{{1|none}}}_desc|{{LSLGC|Color|color}} in RGB {{LSL_VR|1={{HoverText|R|Red}}, {{HoverText|G|Green}}, {{HoverText|B|Blue}}}} ({{LSL_VR|0.0, 0.0, 0.0}} &#61; black, {{LSL_VR|1.0, 1.0, 1.0}} &#61; white)}}

{{#vardefine:p_{{{1|none}}}_hover|color in RGB {{LSL_VR|R, G, B}} ({{LSL_VR|0.0, 0.0, 0.0}} &#61; black, {{LSL_VR|1.0, 1.0, 1.0}} &#61; white)}}

{{#vardefine:also_articles|{{#var:also_articles}}
{{LSL DefineRow||{{LSLGC|Color|Color in LSL}} {{#switch:{{#if:{{{nc|}}}|Template|{{NAMESPACE}}}}|Template=|User=|{{LSLC|Color}}}} }}}}

}}<noinclude>
{| {{Prettytable}}
|-{{Hl2}}
! #var
! value
|-
{{VarPair|p_{{{1|none}}}_desc}}
|-
{{VarPair|p_{{{1|none}}}_hover}}
|-
{{VarPairTable|also_articles}}
|}
</noinclude>
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.