Difference between revisions of "LlGetColor/ru"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function |inject-2={{LSL_Function/face|face|return={{LSL VR|0.0|0.0|0.0}}|get=returns the average color of all the faces on the prim.{{Footnote|Since sRGB is nonlinear this…")
 
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/ru
|inject-2={{LSL_Function/face|face|return={{LSL VR|0.0|0.0|0.0}}|get=returns the average color of all the faces on the prim.{{Footnote|Since sRGB is nonlinear this color may not in fact be of the greatest use.}}}}{{LSL Function/color|none}}
|inject-2={{LSL_Function/face/ru|face|return={{LSL VR|0.0|0.0|0.0}}|get=усредненный вектор цвета по всем сторонам примитива.{{Footnote|Поскольку палитра sRGB нелинейна, сомнительно, что это значение цвета имеет практическую ценность.}}}}{{LSL Function/color|none}}
|func_id=52|func_sleep=0.0|func_energy=10.0
|func_id=52|func_sleep=0.0|func_energy=10.0
|func=llGetColor|sort=GetColor
|func=llGetColor|sort=GetColor
|func_footnote
|func_footnote
|p1_type=integer|p1_name=face
|p1_type=integer|p1_name=face
|return_type=vector
|return_type=вектор
|return_text=that is the color on {{LSLP|face}}.
|return_text=цвета на стороне {{LSLP|face}} примитива.
|spec
|spec
|caveats
|caveats

Revision as of 10:09, 20 August 2012

Общая информация

Function: вектор llGetColor( integer face );

Возвращает цвета на стороне face примитива.

• integer face Номер стороны или ALL_SIDES

Если номер стороны face равен ALL_SIDES, то функция усредненный вектор цвета по всем сторонам примитива.[1]

Предостережения

  • Если номер стороны face указывает на сторону, которой не существует, возвращаемое значение равно <0.0, 0.0, 0.0>
All Issues ~ Search JIRA for related Bugs

Примеры

<lsl>// Tells the owner the color on all sides default {

   state_entry()
   {
       integer i = 0;
       integer max = llGetNumberOfSides();
       while(i < max)
       {
           llOwnerSay("Face " + (string) i + " color is " + (string) llGetColor(i));
           ++i;
       }
   }
}</lsl>

См. также

Функции

•  llGetAlpha Gets the prim's alpha
•  llSetAlpha Sets the prim's alpha
•  llSetColor Sets the prim's color
•  llSetLinkColor Sets link's color
•  llSetLinkAlpha Sets link's alpha
•  llGetNumberOfSides Gets the number of faces on the prim

Статьи

•  Color in LSL

Углублённые заметки

Search JIRA for related Issues

Сноски

  1. ^ Поскольку палитра sRGB нелинейна, сомнительно, что это значение цвета имеет практическую ценность.

Описания

function вектор llGetColor( integer face );