# CHANGED_COLOR

*LSL constant*

```lsl
integer CHANGED_COLOR = 0x2;
```

Object's Blinn-Phong color or alpha parameters have changed.

Constant groups: [ChangeType](/constants/groups/ChangeType/)

Prim [Blinn-Phong](https://wiki.secondlife.com/wiki/PBR_Materials#nomenclature-changes) color or alpha parameters have changed

## Examples

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

```lsl
default
{
    changed(integer change)
    {

        if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The color or alpha changed.");
        }
    }
}
```

</details>

## See also

### Constants

- [PRIM_COLOR](/constants/PRIM_COLOR/)

### Functions

- [llSetAlpha](/functions/llSetAlpha/) — Sets the prim's alpha
- [llSetColor](/functions/llSetColor/) — Sets the prim's color
- [llSetLinkAlpha](/functions/llSetLinkAlpha/) — Sets link's alpha
- [llSetLinkColor](/functions/llSetLinkColor/) — Sets link's color

### Events

- [changed](/events/changed/)

---

*Source: [CHANGED COLOR](https://wiki.secondlife.com/wiki/CHANGED_COLOR) on the Second Life Wiki. Content from the Second Life Wiki article CHANGED COLOR (revision 1215695, 2023-12-01), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/CHANGED_COLOR/
