# PRIM_GLOW

*LSL constant*

```lsl
integer PRIM_GLOW = 25;
```

Prim parameter [PRIM_GLOW, integer face, float intensity] to get or set the glow intensity on a face (the compiler integer value is 25 if the named constant is rejected).

Constant groups: [PrimParam](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

`PRIM_GLOW` is used to get or set the glow status of the `face`. Use the integer number 25 if the compiler rejects the named constant.

## Examples

<details open>
<summary>basic syntax to set glow</summary>

```lsl
// adjust as desired .3 to a float number from 0 to 1.0 inclusive
// adjust as desired ALL_SIDES to specific prim faces if desired

llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES, .3 ] ) ;
```

</details>

<details>
<summary>basic syntax to get glow status</summary>

```lsl
list mylist = llGetPrimitiveParams([ PRIM_GLOW,ALL_SIDES] );
llSay(0, llList2CSV(mylist));

//Assuming for this example that all sides are set to the same float of .3
//In a box, which has 6 sides, the above example returns 0.300000, 0.300000, 0.300000, 0.300000, 0.300000, 0.300000
//In a prism, which has 5 sides, returns 0.300000, 0.300000, 0.300000, 0.300000, 0.300000
//In a sphere, which has only 1 side (as it were), returns 0.300000
//change ALL_SIDES to a specific prim face if desired.
```

</details>

```lsl
//Each time the prim is touched, the intensity of the glow is increased (until it maxes out and cycles back to zero).
integer steps = 10;
integer counter = 0;

default
{
    touch_start(integer total_number)
    {
        llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES,  counter / (steps - 1.0) ]);
        counter = (counter + 1) % steps;
    }
}
```

```lsl
//Each time the prim is touched, the intensity of the glow is decreased (until it hits zero and cycles back to one).
integer steps = 10;
integer counter = 0;

default
{
    touch_start(integer total_number)
    {
        llSetPrimitiveParams( [ PRIM_GLOW, ALL_SIDES,  counter / (steps - 1.0) ]);
        counter = (counter + steps - 1) % steps;
    }
}
```

## History

Added in SVN:337 r81900 Branch:Release Monday, 10 March 2008

## See also

### Constants

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [CHANGED_TEXTURE](/constants/CHANGED_TEXTURE/) |  |  |  |

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)

### Events

- [changed](/events/changed/)

---

*Source: [PRIM GLOW](https://wiki.secondlife.com/wiki/PRIM_GLOW) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM GLOW (revision 1194680, 2015-01-23) and Template:LSL PrimitiveParam Categorize (revision 1180644, 2013-08-09), CC BY-SA 3.0.*

---

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