see, we can all waste our time on stuff that is completely worthless :) Turetsky, Seth wrote: > My very small addition :) > > <!--- Rick Root wrote this code to generate a list of web safe colors ---> > <cfsilent> > <cfset colorlist = ""> > <cfset color_codes = "00,33,66,99,CC,FF"> > <cfloop from="1" to="6" step="1" index="RED"> > <cfloop from="1" to="6" step="1" index="GREEN"> > <cfloop from="1" to="6" step="1" index="BLUE"> > <cfset thiscolor = > "#ListGetAt(COLOR_CODES,RED)##ListGetAt(COLOR_CODES,GREEN)##ListGetAt(COLOR_CODES,BLUE)#"> > <cfset colorlist = listappend(colorlist,thiscolor)> > </cfloop> > </cfloop> > </cfloop> > </cfsilent> > <script> > function displayColor(thisColor) { > document.colorPicker.curColor.value = '#'+thisColor; > } > </script> > <div id="colorWheel"> > <cfscript> > // Ian Skinner wrote this code and posted it to cf-talk > for (deg = 0; deg LT listLen(colorList); deg = deg + 1) > { > xp = 250 + 200*cos(((((360/listLen(colorList))*deg)+270)*pi())/180); > yp = 275 + 200*sin(((((360/listLen(colorList))*deg)+270)*pi())/180); > > writeOutput('<div style="width: 10px; height: 10px; background-color: > ##' & ListGetAt(colorList,deg + 1) & '; position: absolute; top: ' & > round(yp)-10 & 'px; left: ' & round(xp)-10 & 'px;" > onMouseOver="displayColor('''&ListGetAt(colorList,deg + 1)&''')"></div>' & > chr(13) & chr(10)); > } > </cfscript> > </div> > <form name="colorPicker"> > <div id="colorDisplay" style="position:absolute;top:250; left:200"> > <input type="text" name="curColor" value="" size="7"> > </div> > </form> > > -----Original Message----- > From: Rick Root [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 29, 2006 2:54 PM > To: CF-Talk > Subject: Re: Challenging Loop problem SOLVED > > That is pretty damn neat. > > I made a web safe color wheel just for fun =) > > http://www.opensourcecf.com/color_wheel.cfm > > Looks like Ian's got MAD math skills! > > Rick > > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262118 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4