Difference between revisions of "CHANGED COLOR"

From Second Life Wiki
Jump to navigation Jump to search
 
m (<lsl> tag to <source>)
(12 intermediate revisions by 4 users not shown)
Line 3: Line 3:
|type=integer
|type=integer
|value={{LSL Hex|0x2}}
|value={{LSL Hex|0x2}}
|desc=
|desc=Prim color or alpha parameters have changed
|examples
|examples=
|functions
<source lang="lsl2">
default
{
    changed(integer change)
    {
 
        if (change & CHANGED_COLOR) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The color or alpha changed.");
        }
    }
}
</source>
|functions=
{{LSL DefineRow||[[llSetAlpha]]|Sets the prim's alpha}}
{{LSL DefineRow||[[llSetColor]]|Sets the prim's color}}
{{LSL DefineRow||[[llSetPrimitiveParams]]|Sets the prim's parameters}}
{{LSL DefineRow||[[llSetLinkAlpha]]|Sets link's alpha}}
{{LSL DefineRow||[[llSetLinkColor]]|Sets link's color}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|Sets link's parameters}}
|constants=
{{LSL DefineRow||[[PRIM_COLOR]]|}}
|events=
|events=
{{LSL DefineRow||[[changed]]|}}
{{LSL DefineRow||[[changed]]|}}
|cat1
|cat1=Color
|cat2
|cat2=Alpha
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 16:14, 22 January 2015

Description

Constant: integer CHANGED_COLOR = 0x2;

The integer constant CHANGED_COLOR has the value 0x2

Prim color or alpha parameters have changed

Related Articles

Constants

•  PRIM_COLOR

Functions

•  llSetAlpha Sets the prim's alpha
•  llSetColor Sets the prim's color
•  llSetPrimitiveParams Sets the prim's parameters
•  llSetLinkAlpha Sets link's alpha
•  llSetLinkColor Sets link's color
•  llSetLinkPrimitiveParams Sets link's parameters

Events

•  changed

Examples

default
{
    changed(integer change)
    {

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

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_COLOR = 0x2;