Difference between revisions of "User:Adicted Waco/Projects"

From Second Life Wiki
Jump to navigation Jump to search
(A HSL To RGB Script)
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{User:Adicted_Waco/SubPageTableOfContents}}
<div id="box">
<div id="box">


== Projects In Progress==
== Projects In Progress==
<div style="padding: 0.5em">
<div>
<TABLE CELLSPACING=1 CELLPADDING=1 RULES=ALL BORDER=1>
<TABLE CELLSPACING=1 CELLPADDING=1 RULES=ALL BORDER=1>
<TR style="font-weight: 900">
<TR style="font-weight: 900">
Line 10: Line 11:
</TR>
</TR>
<TR>
<TR>
<TD ALIGN=LEFT></br></TD>
<TD ALIGN=LEFT><br></TD>
<TD ALIGN=LEFT></br></TD>
<TD ALIGN=LEFT><br></TD>
<TD ALIGN=CENTER></br></TD>
<TD ALIGN=CENTER><br></TD>
</TR>
</TR>
</TABLE>
</TABLE>
Notes:
Notes:
*Used - When I Need To Sort Out Some Projects When I Have Several Things To Do
*Priority - Lower Numbers Are More Important
*Priority - Lower Numbers Are More Important
</div>
</div>


<div style="padding: 0.5em">
<div>
== Script In Process ==
== Scripts ==
A Script That Converts A Hue To A RGB (Needs Work)
*[[User:Adicted_Waco/Projects/HSL2RGB|HSL2RGB]]
<lsl>
float hue_2_rgb(float temp1,float temp2,float temp3)
{
        if (temp3 < 0)
        {
                temp3 += 1;
        }
        if (temp3 > 1)
        {
                temp3 -= 1;
        }
        if (6.0*temp3 < 1)
        {
            return (temp1+(temp2-temp1)*6.0*temp3);
        }
        else if (2.0*temp3 < 1)
        {
            return (temp2);
        }
        else if (3.0*temp3 < 2)
        {
            return (temp1+(temp2-temp1)*((2.0/3.0)-temp3)*6.0);
        }
        else
        {
            return (temp1);
        }
}
default
{
    state_entry()
    {
        float h = 85.0/360.0;
        float s = 100.0/100.0;
        float l = 50.0/100.0;
        float var_1;
        float var_2;
        vector Colour;
        if (s == 0)
        {
                Colour = <l, l, l>;
        }
        else
        {
            if (l < 0.5)
            {
                    var_2 = l * (1 + s);
            }
            else
            {
                    var_2 = (l + s) - (s * l);
            }
            var_1 = 2 * l - var_2;
            Colour = <
            hue_2_rgb(var_1,var_2,h + (1.0 / 3.0)),
            hue_2_rgb(var_1,var_2,h),
            hue_2_rgb(var_1,var_2,h - (1.0 / 3.0))>;
        }
        llOwnerSay((string)Colour);
    }
}
 
</lsl>
</div>
</div>
</div>
</div>

Latest revision as of 22:17, 9 May 2009

Subpage Table Of Contents

Adicted Waco

Projects In Progress

Priority Project Name Sub-Tasks



Notes:

  • Used - When I Need To Sort Out Some Projects When I Have Several Things To Do
  • Priority - Lower Numbers Are More Important

Scripts