Skip to content
lsl.devlsl.devLSL Dev

PRIM COLOR

Looking for the current API? Open the PRIM_COLOR reference →

Wiki description

Used to get or set the Blinn-Phong color and alpha of a prim's face.

Helper functions

Color Code
NAVY<0.000, 0.122, 0.247>
BLUE<0.000, 0.455, 0.851>
AQUA<0.498, 0.859, 1.000>
TEAL<0.224, 0.800, 0.800>
OLIVE<0.239, 0.600, 0.439>
GREEN<0.180, 0.800, 0.251>
LIME<0.004, 1.000, 0.439>
YELLOW<1.000, 0.863, 0.000>
ORANGE<1.000, 0.522, 0.106>
RED<1.000, 0.255, 0.212>
MAROON<0.522, 0.078, 0.294>
FUCHSIA<0.941, 0.071, 0.745>
PURPLE<0.694, 0.051, 0.788>
WHITE<1.000, 1.000, 1.000>
SILVER<0.867, 0.867, 0.867>
GRAY<0.667, 0.667, 0.667>
BLACK<0.067, 0.067, 0.067>

See also: functions

See also: events

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 PrimitiveParam Categorize

Original shared helper source (conditional wiki logic is not evaluated)
{{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}||{{#vardefine:hidden-text|{{#var:hidden-text}}
{{#ifexist:Template:LSLC{{#var:lang}}|
 {{LSLC{{#var:lang}}|PrimitiveParams}}
 {{LSLC{{#var:lang}}|PrimitiveParams/{{{1}}}}}
 {{LSLC{{#var:lang}}|{{{1}}}}}
|
 {{LSLC|PrimitiveParams{{#var:lang}}}}
 {{LSLC|PrimitiveParams/{{{1}}}{{#var:lang}}}}
 {{LSLC|{{{1}}}{{#var:lang}}}}
}}
}}}}
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.