Difference between revisions of "LlSetText"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSLFunction
{{LSL_Function
|function llSetText
|func_id=llSetText
|function ID
|func_sleep=
|sleep
|func_energy=
|energy|
|func=llSetText
|tb = This function is used to set text to display over an object in SL.
|sort=SetText
|r = displayed text
|p1_type=text
|rd = placed over object -- programmer specifies text, color and visibility/transparency.
|p1_name=String
 
Use:
Set text floating over object
 
llSetText(String text, Vector color, Float alpha);
 
|p1 = text
|p1t = String
|p1d = text to display between the quotes
|p1d = text to display between the quotes
|p2 = color
|p2_type=color
|p2t = Vector
|p2_name=Vector
|p2d = color in RGB enclosed between <> signs, as in <0,0,0> = black, <1,1,1> = white.
|p2d = color in RGB enclosed between <> signs, as in <0,0,0> = black, <1,1,1> = white.
|p3 = alpha
|p3_type=alpha
|p3t = Float
|p3_name=Float
|p3d = visibility, a number between 0 and 1.  0 is fully transparent (invisible), 1.0 is fully visible (opaque).
|p3d = visibility, a number between 0 and 1.  0 is fully transparent (invisible), 1.0 is fully visible (opaque).
llSetText(String text, Vector color, Float alpha);


|te = Examples:
|func_desc=This function is used to set text to display over an object in SL.
|return_text
|spec=Displays text placed over object -- programmer specifies text, color and visibility/transparency.
|caveats=None known.
|examples=<lsl>


llSetText("I am on", <1,1,1>,1.0);
llSetText("I am on", <1,1,1>,1.0);
Line 32: Line 29:


The 1.0 is the alpha setting. 1.0 means fully opaque, and 0.0 would be completely transparent (invisible).  
The 1.0 is the alpha setting. 1.0 means fully opaque, and 0.0 would be completely transparent (invisible).  
|helpers
|also_functions
|also
|notes=
|te = Examples:


}}
}}

Revision as of 09:54, 6 February 2007

Summary

Function: llSetText( text String, color Vector, alpha Float );

This function is used to set text to display over an object in SL.

• text String
• color Vector
• alpha Float

Specification

Displays text placed over object -- programmer specifies text, color and visibility/transparency.

Caveats

Expression error: Unexpected > operator.None known.

Examples

<lsl>

llSetText("I am on", <1,1,1>,1.0);

<1,1,1> represents the values for red, green, and blue. <1,1,1>, means "white" and <0,0,0> means "black".

llSetText("I am off", <0,0,0>,1.0);

The 1.0 is the alpha setting. 1.0 means fully opaque, and 0.0 would be completely transparent (invisible).

Deep Notes

Signature

function void llSetText( text String, color Vector, alpha Float );