# llGetColor

*LSL function*

```lsl
vector vector llGetColor(integer face);
```

- `integer face`: Face number or ALL_SIDES.

- Returns: `vector`
- Energy: 10

Returns the Blinn-Phong RGB color vector of face (values between 0.0 and 1.0). If face is ALL_SIDES, returns the mean average of all faces.

Returns a [vector](https://wiki.secondlife.com/wiki/vector) that is the [Blinn-Phong](https://wiki.secondlife.com/wiki/PBR_Materials#nomenclature-changes) color on **face**.

```lsl title="How to use" frame="terminal"
vector result = llGetColor(0);
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
// 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;
        }
    }
}
```

</details>

## See also

### Functions

- [llGetAlpha](/functions/llGetAlpha/) — Gets the prim's alpha
- [llSetAlpha](/functions/llSetAlpha/) — Sets the prim's alpha
- [llSetColor](/functions/llSetColor/) — Sets the prim's color
- [llSetLinkColor](/functions/llSetLinkColor/) — Sets link's color
- [llSetLinkAlpha](/functions/llSetLinkAlpha/) — Sets link's alpha
- [llGetNumberOfSides](/functions/llGetNumberOfSides/) — Gets the number of faces on the prim

---

*Source: [LlGetColor](https://wiki.secondlife.com/wiki/LlGetColor) on the Second Life Wiki. Content from the Second Life Wiki articles LlGetColor (revision 1215694, 2023-12-01), Template:LSL VR (revision 12853, 2007-02-23), Template:Footnote (revision 1183415, 2013-11-06), Template:LSL Function/face (revision 1175878, 2013-01-06) and Template:LSL Function/color (revision 1168815, 2012-06-11), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetColor/
