Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Randomly generating "pretty" colours

Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
09-10-2007 12:42
Hi!

I have a number of particle scripts that use llFrand() to rapidly generate the x, y & z elements of the PSYS_PART_START/END_COLOR vectors. This works well and causes no problems.

I am now however looking to refine the process so that only attractive, "pretty" colours are generated, avoiding the murky browns, sickly greens and rabid reds etc.

One possible solution, it seems, is to pre-load a list with known desirable colour vectors & use llFrand() to extract one from the list. For this tho', I would be need a 'colour chart' displaying the vector for each colour ~ the task of converting from a standard RGB 0-255 to an SL RGB 0-1 sounds a little tedious, tbh, but I will do it if necessary and if nobody out there has already performed this task. So, if you have or know the whereabouts of a comprehensive chart of this type, please let me know!

Secondly, is the proposed solution of pre-loading a list with these vectors a workable and/or efficient one?

Do you have a better way, or any tips, for randomly generating certain 'desirable' colours?

Thanks in advance.... :)
Vlad Bjornson
Virtual Gardener
Join date: 11 Nov 2005
Posts: 650
09-10-2007 13:59
I think that your idea of storing pre-made palettes of colors in a list is a good one. I you didn't feel like converting the RGB number ranges - you could always do it within the script. Just divide the '0-255' RGB value by 255 to get the '0-1' range value.

It might also be possible to generate some more pleasing combinations by using a few color theory guidelines. There are certain ways to combine colors on a color wheel that generally produce pleasing result. This might take a bit of imaginative scripting, something that is usually beyond my skills :)

Color Wheel Combinations:
http://www.worqx.com/color/combinations.htm
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
09-10-2007 14:01
Pre-loading your colors sounds like the best idea, especially since "pretty colors" are all in the eye of the beholder (and, beyond that, dependent upon the exact project).

RGB to Vector is actually a relatively simple task. I've got a quick-script somewhere that I use to do it. I'll see if I can't find it in my inventory and pass it when I'm next online.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
09-10-2007 15:52
One possible way would be to generate your colours in HSV rather than RGB, then convert them. Stick to high Value and Saturation and you'll get the brighter, more vibrant colours across hues. There is a standard function to convert to RGB - it should be doable in LSL, but I should test it properly before I post it here.
Echo Dragonfly
Surely You Jest
Join date: 22 Aug 2004
Posts: 325
09-10-2007 17:12
Here is a color vector list : A LONG ONE, lol

aliceblue (0.941,0.973,1.000)
alizarincrimson (0.890,0.149,0.212)
almostwhite (1.000,1.000,0.996)
antiquewhite (0.980,0.922,0.843)
antiquewhite1 (1.000,0.937,0.859)
antiquewhite2 (0.933,0.875,0.800)
antiquewhite3 (0.804,0.753,0.690)
antiquewhite4 (0.545,0.514,0.471)
aquamarine (0.439,0.859,0.576)
aquamarine (0.498,1.000,0.831)
aquamarine2 (0.463,0.933,0.776)
aquamarine4 (0.271,0.545,0.455)
aureolineyellow (1.000,0.659,0.141)
azure (0.941,1.000,1.000)
azure2 (0.878,0.933,0.933)
azure3 (0.757,0.804,0.804)
azure4 (0.514,0.545,0.545)
bakerschocolate (0.361,0.200,0.090)
banana (0.890,0.812,0.341)
beige (0.639,0.580,0.502)
beige (0.961,0.961,0.863)
bisque (1.000,0.894,0.769)
bisque2 (0.933,0.835,0.718)
bisque3 (0.804,0.718,0.620)
bisque4 (0.545,0.490,0.420)
black (0.000,0.000,0.000)
blanchedalmond (1.000,0.922,0.804)
bloodorange (0.800,0.067,0.000)
bloodred (0.400,0.000,0.000)
blue (0.000,0.000,1.000)
blue2 (0.000,0.000,0.933)
blueviolet (0.541,0.169,0.886)
blueviolet (0.624,0.373,0.624)
bone (1.000,1.000,0.800)
brass (0.710,0.651,0.259)
brick (0.612,0.400,0.122)
brightgold (0.851,0.851,0.098)
broadwaypink (1.000,0.000,0.400)
bronze (0.549,0.471,0.325)
bronzeii (0.651,0.490,0.239)
brown (0.502,0.165,0.165)
brown (0.647,0.165,0.165)
brown (0.651,0.165,0.165)
brown1 (1.000,0.251,0.251)
brown2 (0.933,0.231,0.231)
brown3 (0.804,0.200,0.200)
brown4 (0.545,0.137,0.137)
brownmadder (0.859,0.161,0.161)
brownochre (0.529,0.259,0.122)
burlywood (0.871,0.722,0.529)
burlywood1 (1.000,0.827,0.608)
burlywood2 (0.933,0.773,0.569)
burlywood3 (0.804,0.667,0.490)
burlywood4 (0.545,0.451,0.333)
burntsienna (0.541,0.212,0.059)
burntsienna (0.333,0.063,0.067)
burntumber (0.541,0.200,0.141)
cadetblue (0.373,0.620,0.627)
cadetblue (0.373,0.624,0.624)
cadetblue1 (0.596,0.961,1.000)
cadetblue2 (0.557,0.898,0.933)
cadetblue3 (0.478,0.773,0.804)
cadetblue4 (0.325,0.525,0.545)
cadmiumlemon (1.000,0.890,0.012)
cadmiumorange (1.000,0.380,0.012)
cadmiumreddeep (0.890,0.090,0.051)
cadmiumredlight (1.000,0.012,0.051)
cadmiumyellow (1.000,0.600,0.071)
carrot (0.929,0.569,0.129)
cerulean (0.020,0.722,0.800)
chartreuse (0.498,1.000,0.000)
chartreuse2 (0.463,0.933,0.000)
chartreuse3 (0.400,0.804,0.000)
chartreuse4 (0.271,0.545,0.000)
chocolate (0.824,0.412,0.118)
chocolate (0.600,0.200,0.000)
chocolate1 (1.000,0.498,0.141)
chocolate2 (0.933,0.463,0.129)
chocolate3 (0.804,0.400,0.114)
chromeoxidegreen (0.400,0.502,0.078)
cinnabargreen (0.380,0.702,0.161)
cinnamon (0.667,0.400,0.000)
cobalt (0.239,0.349,0.671)
cobalt (0.400,0.400,1.000)
cobaltgreen (0.239,0.569,0.251)
cobaltvioletdeep (0.569,0.129,0.620)
coldgrey (0.502,0.541,0.529)
coolcopper (0.851,0.529,0.098)
copper (0.722,0.451,0.200)
coral (1.000,0.498,0.314)
coral1 (1.000,0.447,0.337)
coral2 (0.933,0.416,0.314)
coral3 (0.804,0.357,0.271)
coral4 (0.545,0.243,0.184)
cornflower (0.200,0.000,1.000)
cornflowerblue (0.392,0.584,0.929)
cornflowerblue (0.259,0.259,0.435)
cornsilk (1.000,0.973,0.863)
cornsilk2 (0.933,0.910,0.804)
cornsilk3 (0.804,0.784,0.694)
cornsilk4 (0.545,0.533,0.471)
crimson (0.863,0.078,0.235)
cyan (0.000,1.000,1.000)
cyan2 (0.000,0.933,0.933)
cyan3 (0.000,0.804,0.804)
cyan4 (0.000,0.545,0.545)
darkblue (0.000,0.000,0.545)
darkcherryred (0.200,0.000,0.000)
darkgoldenrod (0.722,0.525,0.043)
darkgoldenrod1 (1.000,0.725,0.059)
darkgoldenrod2 (0.933,0.678,0.055)
darkgoldenrod3 (0.804,0.584,0.047)
darkgoldenrod4 (0.545,0.396,0.031)
darkgray (0.663,0.663,0.663)
darkgreen (0.000,0.392,0.000)
darkgreen (0.184,0.310,0.184)
darkgreencopper (0.290,0.463,0.431)
darkkhaki (0.741,0.718,0.420)
darkolivegreen (0.310,0.310,0.184)
darkolivegreen (0.333,0.420,0.184)
darkolivegreen1 (0.792,1.000,0.439)
darkolivegreen2 (0.737,0.933,0.408)
darkolivegreen3 (0.635,0.804,0.353)
darkolivegreen4 (0.431,0.545,0.239)
darkorange (1.000,0.549,0.000)
darkorange1 (1.000,0.498,0.000)
darkorange1 (1.000,0.525,0.000)
darkorange2 (0.933,0.463,0.000)
darkorange3 (0.804,0.400,0.000)
darkorange4 (0.545,0.271,0.000)
darkorchid (0.600,0.196,0.800)
darkorchid (0.600,0.196,0.804)
darkorchid1 (0.749,0.243,1.000)
darkorchid2 (0.698,0.227,0.933)
darkorchid3 (0.604,0.196,0.804)
darkorchid4 (0.408,0.133,0.545)
darkpurple (0.529,0.122,0.471)
darksalmon (0.914,0.588,0.478)
darkseagreen (0.561,0.737,0.561)
darkseagreen1 (0.757,1.000,0.757)
darkseagreen2 (0.706,0.933,0.706)
darkseagreen3 (0.608,0.804,0.608)
darkseagreen4 (0.412,0.545,0.412)
darkslateblue (0.420,0.137,0.557)
darkslateblue (0.282,0.239,0.545)
darkslategray (0.184,0.310,0.310)
darkslategray1 (0.592,1.000,1.000)
darkslategray2 (0.553,0.933,0.933)
darkslategray3 (0.475,0.804,0.804)
darkslategray4 (0.322,0.545,0.545)
darktan (0.592,0.412,0.310)
darkturquoise (0.000,0.808,0.820)
darkturquoise (0.439,0.576,0.859)
darkviolet (0.580,0.000,0.827)
darkwood (0.522,0.369,0.259)
deepochre (0.451,0.239,0.102)
deeppink (1.000,0.078,0.576)
deeppink2 (0.933,0.071,0.537)
deeppink3 (0.804,0.063,0.463)
deeppink4 (0.545,0.039,0.314)
deeppurple (0.333,0.063,0.200)
deepskyblue (0.000,0.749,1.000)
deepskyblue2 (0.000,0.698,0.933)
deepskyblue3 (0.000,0.604,0.804)
deepskyblue4 (0.000,0.408,0.545)
dimgray (0.412,0.412,0.412)
dodgerblue (0.118,0.565,1.000)
dodgerblue2 (0.110,0.525,0.933)
dodgerblue3 (0.094,0.455,0.804)
dodgerblue4 (0.063,0.306,0.545)
dustyrose (0.522,0.388,0.388)
eggshell (0.988,0.902,0.788)
emeraldgreen (0.000,0.788,0.341)
englishred (0.831,0.239,0.102)
feldspar (0.820,0.573,0.459)
firebrick (0.698,0.133,0.133)
firebrick1 (1.000,0.188,0.188)
firebrick2 (0.933,0.173,0.173)
firebrick3 (0.804,0.149,0.149)
firebrick4 (0.545,0.102,0.102)
firebrick5 (0.557,0.137,0.137)
flatpink (1.000,0.800,0.800)
flesh (1.000,0.490,0.251)
fleshochre (1.000,0.341,0.129)
floralwhite (1.000,0.980,0.941)
forestgreen (0.133,0.545,0.133)
forestgreen (0.137,0.557,0.137)
forestgreen (0.200,0.133,0.067)
fuchsia (1.000,0.000,0.667)
gainsboro (0.863,0.863,0.863)
ganegreen (0.467,0.467,0.200)
geraniumlake (0.890,0.071,0.188)
ghostwhite (0.973,0.973,1.000)
gold (1.000,0.843,0.000)
gold2 (0.933,0.788,0.000)
gold3 (0.804,0.678,0.000)
gold4 (0.545,0.459,0.000)
gold5 (0.800,0.498,0.196)
gold6 (0.804,0.498,0.196)
gold7 (1.000,0.667,0.000)
goldenrod (0.855,0.647,0.125)
goldenrod (0.859,0.859,0.439)
goldenrod1 (1.000,0.757,0.145)
goldenrod2 (0.933,0.706,0.133)
goldenrod3 (0.804,0.608,0.114)
goldenrod4 (0.545,0.412,0.078)
goldgreen (0.667,0.867,0.000)
goldochre (0.780,0.471,0.149)
grape (0.800,0.000,1.000)
gray (0.502,0.502,0.502)
gray (0.745,0.745,0.745)
gray1 (0.012,0.012,0.012)
gray10 (0.102,0.102,0.102)
gray11 (0.110,0.110,0.110)
gray12 (0.122,0.122,0.122)
gray13 (0.129,0.129,0.129)
gray14 (0.141,0.141,0.141)
gray15 (0.149,0.149,0.149)
gray16 (0.161,0.161,0.161)
gray17 (0.169,0.169,0.169)
gray18 (0.180,0.180,0.180)
gray19 (0.188,0.188,0.188)
gray2 (0.020,0.020,0.020)
gray20 (0.200,0.200,0.200)
gray21 (0.212,0.212,0.212)
gray22 (0.220,0.220,0.220)
gray23 (0.231,0.231,0.231)
gray24 (0.239,0.239,0.239)
gray25 (0.251,0.251,0.251)
gray26 (0.259,0.259,0.259)
gray27 (0.271,0.271,0.271)
gray28 (0.278,0.278,0.278)
gray3 (0.031,0.031,0.031)
gray33 (0.333,0.333,0.333)
gray34 (0.341,0.341,0.341)
gray35 (0.349,0.349,0.349)
gray36 (0.361,0.361,0.361)
gray37 (0.369,0.369,0.369)
gray38 (0.380,0.380,0.380)
gray39 (0.388,0.388,0.388)
gray4 (0.039,0.039,0.039)
gray40 (0.400,0.400,0.400)
gray42 (0.420,0.420,0.420)
gray43 (0.431,0.431,0.431)
gray44 (0.439,0.439,0.439)
gray45 (0.451,0.451,0.451)
gray46 (0.459,0.459,0.459)
gray47 (0.471,0.471,0.471)
gray48 (0.478,0.478,0.478)
gray49 (0.490,0.490,0.490)
gray5 (0.051,0.051,0.051)
gray50 (0.498,0.498,0.498)
gray51 (0.510,0.510,0.510)
gray52 (0.522,0.522,0.522)
gray53 (0.529,0.529,0.529)
gray54 (0.541,0.541,0.541)
gray55 (0.549,0.549,0.549)
gray56 (0.561,0.561,0.561)
gray57 (0.569,0.569,0.569)
gray58 (0.580,0.580,0.580)
gray59 (0.588,0.588,0.588)
gray6 (0.059,0.059,0.059)
gray60 (0.600,0.600,0.600)
gray61 (0.612,0.612,0.612)
gray62 (0.620,0.620,0.620)
gray63 (0.631,0.631,0.631)
gray64 (0.639,0.639,0.639)
gray65 (0.651,0.651,0.651)
gray66 (0.659,0.659,0.659)
gray67 (0.671,0.671,0.671)
gray68 (0.678,0.678,0.678)
gray69 (0.690,0.690,0.690)
gray7 (0.071,0.071,0.071)
gray70 (0.702,0.702,0.702)
gray71 (0.710,0.710,0.710)
gray72 (0.722,0.722,0.722)
gray73 (0.729,0.729,0.729)
gray74 (0.741,0.741,0.741)
gray75 (0.749,0.749,0.749)
gray76 (0.761,0.761,0.761)
gray77 (0.769,0.769,0.769)
gray78 (0.780,0.780,0.780)
gray79 (0.788,0.788,0.788)
gray8 (0.078,0.078,0.078)
gray80 (0.800,0.800,0.800)
gray81 (0.812,0.812,0.812)
gray82 (0.820,0.820,0.820)
gray83 (0.831,0.831,0.831)
gray84 (0.839,0.839,0.839)
gray85 (0.851,0.851,0.851)
gray86 (0.859,0.859,0.859)
gray87 (0.871,0.871,0.871)
gray88 (0.878,0.878,0.878)
gray89 (0.890,0.890,0.890)
gray9 (0.090,0.090,0.090)
gray90 (0.898,0.898,0.898)
gray91 (0.910,0.910,0.910)
gray92 (0.922,0.922,0.922)
gray93 (0.929,0.929,0.929)
gray94 (0.941,0.941,0.941)
gray95 (0.949,0.949,0.949)
gray97 (0.969,0.969,0.969)
gray98 (0.980,0.980,0.980)
gray99 (0.988,0.988,0.988)
green (0.000,0.502,0.000)
green2 (0.000,0.933,0.000)
green3 (0.000,0.804,0.000)
green4 (0.000,0.545,0.000)
greencopper (0.322,0.498,0.463)
greenishumber (1.000,0.239,0.051)
greenyellow (0.576,0.859,0.439)
greenyellow (0.678,1.000,0.184)
grey29 (0.290,0.290,0.290)
grey30 (0.302,0.302,0.302)
grey31 (0.310,0.310,0.310)
grey32 (0.322,0.322,0.322)
grey33 (0.329,0.329,0.329)
honeydew (0.941,1.000,0.941)
honeydew2 (0.878,0.933,0.878)
honeydew3 (0.757,0.804,0.757)
honeydew4 (0.514,0.545,0.514)
hotpink (1.000,0.412,0.706)
hotpink1 (1.000,0.431,0.706)
hotpink2 (0.933,0.416,0.655)
hotpink3 (0.804,0.376,0.565)
hotpink4 (0.545,0.227,0.384)
huntergreen (0.129,0.369,0.129)
indianred (0.690,0.090,0.122)
indianred (0.804,0.361,0.361)
indianred1 (1.000,0.416,0.416)
indianred2 (0.933,0.388,0.388)
indianred3 (0.804,0.333,0.333)
indianred4 (0.545,0.227,0.227)
indigo (0.180,0.031,0.329)
indigo (0.294,0.000,0.510)
indigo (0.400,0.000,1.000)
indigo2 (0.129,0.533,0.408)
ivory (1.000,1.000,0.941)
ivory2 (0.933,0.933,0.878)
ivory3 (0.804,0.804,0.757)
ivory4 (0.545,0.545,0.514)
ivoryblack (0.161,0.141,0.129)
khaki (0.624,0.624,0.373)
khaki (0.941,0.902,0.549)
khaki1 (1.000,0.965,0.561)
khaki2 (0.933,0.902,0.522)
khaki3 (0.804,0.776,0.451)
khaki4 (0.545,0.525,0.306)
lampblack (0.180,0.278,0.231)
lavender (0.902,0.902,0.980)
lavender (0.800,0.600,0.800)
lavenderblush (1.000,0.941,0.961)
lavenderblush2 (0.933,0.878,0.898)
lavenderblush3 (0.804,0.757,0.773)
lavenderblush4 (0.545,0.514,0.525)
lawngreen (0.486,0.988,0.000)
lemonchiffon (1.000,0.980,0.804)
lemonchiffon2 (0.933,0.914,0.749)
lemonchiffon3 (0.804,0.788,0.647)
lemonchiffon4 (0.545,0.537,0.439)
lightblue (0.561,0.847,0.847)
lightblue (0.678,0.847,0.902)
lightblue (0.753,0.851,0.851)
lightblue1 (0.749,0.937,1.000)
lightblue2 (0.698,0.875,0.933)
lightblue3 (0.604,0.753,0.804)
lightblue4 (0.408,0.514,0.545)
lightcoral (0.941,0.502,0.502)
lightcyan (0.878,1.000,1.000)
lightcyan2 (0.820,0.933,0.933)
lightcyan3 (0.706,0.804,0.804)
lightcyan4 (0.478,0.545,0.545)
lightgoldenrod (0.933,0.867,0.510)
lightgoldenrod2 (0.933,0.863,0.510)
lightgoldenrodyellow (0.980,0.980,0.824)
lightgray (0.827,0.827,0.827)
lightpink (1.000,0.714,0.757)
lightpink1 (1.000,0.682,0.725)
lightpink2 (0.933,0.635,0.678)
lightpink3 (0.804,0.549,0.584)
lightpink4 (0.545,0.373,0.396)
lightsalmon (1.000,0.627,0.478)
lightsalmon2 (0.933,0.584,0.447)
lightsalmon3 (0.804,0.506,0.384)
lightsalmon4 (0.545,0.341,0.259)
lightseagreen (0.125,0.698,0.667)
lightskyblue (0.529,0.808,0.980)
lightskyblue1 (0.690,0.886,1.000)
lightskyblue2 (0.643,0.827,0.933)
lightskyblue3 (0.553,0.714,0.804)
lightskyblue4 (0.376,0.482,0.545)
lightslateblue (0.518,0.439,1.000)
lightsteelblue (0.561,0.561,0.737)
lightsteelblue (0.690,0.769,0.871)
lightsteelblue1 (0.792,0.882,1.000)
lightsteelblue2 (0.737,0.824,0.933)
lightsteelblue3 (0.635,0.710,0.804)
lightsteelblue4 (0.431,0.482,0.545)
lightwood (0.914,0.761,0.651)
lightyellow (1.000,1.000,0.878)
lightyellow2 (0.933,0.933,0.820)
lightyellow3 (0.804,0.804,0.706)
lightyellow4 (0.545,0.545,0.478)
lime (0.000,1.000,0.000)
limegreen (0.196,0.800,0.196)
limegreen (0.196,0.804,0.196)
linen (0.980,0.941,0.902)
madderlakedeep (0.890,0.180,0.188)
magenta (1.000,0.000,0.200)
magenta2 (0.933,0.000,0.933)
magenta3 (0.804,0.000,0.804)
mandarianorange (0.894,0.471,0.200)
manganeseblue (0.012,0.659,0.620)
maroon (0.502,0.000,0.000)
maroon1 (1.000,0.204,0.702)
maroon2 (0.933,0.188,0.655)
maroon3 (0.804,0.161,0.565)
maroon4 (0.545,0.110,0.384)
maroon5 (0.412,0.122,0.004)
maroon6 (0.557,0.137,0.420)
maroonb0 (0.690,0.188,0.376)
marsorange (0.588,0.271,0.078)
marsyellow (0.890,0.439,0.102)
mediumaquamarine (0.400,0.804,0.667)
mediumaquamarine2 (0.196,0.800,0.600)
mediumblue (0.000,0.000,0.804)
mediumblue (0.196,0.196,0.800)
mediumblue (0.196,0.196,0.804)
mediumgoldenrod (0.918,0.918,0.678)
mediumgoldenrod (0.918,0.918,0.682)
mediumorchid (0.729,0.333,0.827)
mediumorchid1 (0.878,0.400,1.000)
mediumorchid2 (0.820,0.373,0.933)
mediumorchid3 (0.706,0.322,0.804)
mediumorchid4 (0.478,0.216,0.545)
mediumpurple (0.576,0.439,0.859)
mediumpurple1 (0.671,0.510,1.000)
mediumpurple2 (0.624,0.475,0.933)
mediumpurple3 (0.537,0.408,0.804)
mediumpurple4 (0.365,0.278,0.545)
mediumseagreen (0.235,0.702,0.443)
mediumseagreen (0.259,0.435,0.259)
mediumslateblue (0.482,0.408,0.933)
mediumslateblue2 (0.498,0.000,1.000)
mediumspringgreen (0.000,0.980,0.604)
mediumturquoise (0.439,0.859,0.859)
mediumturquoise (0.282,0.820,0.800)
mediumvioletred (0.780,0.082,0.522)
mediumwood (0.651,0.502,0.392)
melon (0.890,0.659,0.412)
melonrindgreen (0.875,1.000,0.647)
midnightblue (0.098,0.098,0.439)
midnightblue (0.184,0.184,0.310)
midnightblue (0.000,0.000,0.200)
mint (0.741,0.988,0.788)
mintcream (0.961,1.000,0.980)
mistyrose (1.000,0.894,0.882)
mistyrose2 (0.933,0.835,0.824)
mistyrose3 (0.804,0.718,0.710)
mistyrose4 (0.545,0.490,0.482)
moccasin (1.000,0.894,0.710)
mustard (1.000,0.800,0.067)
naplesyellowdeep (1.000,0.659,0.071)
navajowhite (1.000,0.871,0.678)
navajowhite2 (0.933,0.812,0.631)
navajowhite3 (0.804,0.702,0.545)
navajowhite4 (0.545,0.475,0.369)
navy (0.000,0.000,0.502)
navyblue (0.137,0.137,0.557)
nectarine (1.000,0.200,0.000)
neonavocado (0.000,1.000,0.400)
neonblue (0.302,0.302,1.000)
neonpink (1.000,0.431,0.780)
newmidnightblue (0.000,0.000,0.612)
newtan (0.922,0.780,0.620)
ochre (0.800,0.467,0.133)
offwhiteblue (0.800,0.800,1.000)
offwhitegreen (0.800,1.000,0.800)
oldgold (0.812,0.710,0.231)
oldlace (0.992,0.961,0.902)
olive (0.502,0.502,0.000)
olive3b (0.231,0.369,0.169)
olivedrab (0.420,0.557,0.137)
olivedrab1 (0.753,1.000,0.243)
olivedrab2 (0.702,0.933,0.227)
olivedrab4 (0.412,0.545,0.133)
orange (0.800,0.196,0.196)
orange (1.000,0.502,0.000)
orange (1.000,0.647,0.000)
orange (1.000,0.400,0.000)
orange2 (0.933,0.604,0.000)
orange3 (0.804,0.522,0.000)
orange4 (0.545,0.353,0.000)
orangered (1.000,0.000,0.498)
orangered (1.000,0.141,0.000)
orangered (1.000,0.271,0.000)
orangered2 (0.933,0.251,0.000)
orangered3 (0.804,0.216,0.000)
orangered4 (0.545,0.145,0.000)
orchid (0.855,0.439,0.839)
orchid (0.859,0.439,0.859)
orchid1 (1.000,0.514,0.980)
orchid2 (0.933,0.478,0.914)
orchid3 (0.804,0.412,0.788)
orchid4 (0.545,0.278,0.537)
palegoldenrod (0.933,0.910,0.667)
palegreen (0.596,0.984,0.596)
palegreen1 (0.604,1.000,0.604)
palegreen3 (0.486,0.804,0.486)
palegreen4 (0.329,0.545,0.329)
paleturquoise (0.686,0.933,0.933)
paleturquoise1 (0.733,1.000,1.000)
paleturquoise2 (0.682,0.933,0.933)
paleturquoise3 (0.588,0.804,0.804)
paleturquoise4 (0.400,0.545,0.545)
palevioletred (0.859,0.439,0.576)
palevioletred1 (1.000,0.510,0.671)
palevioletred2 (0.933,0.475,0.624)
palevioletred3 (0.804,0.408,0.537)
palevioletred4 (0.545,0.278,0.365)
papayawhip (1.000,0.937,0.835)
parrotgreen (0.200,1.000,0.200)
peach (1.000,0.600,0.333)
peachpuff (1.000,0.678,0.725)
peachpuff (1.000,0.855,0.725)
peachpuff2 (0.933,0.796,0.678)
peachpuff3 (0.804,0.686,0.584)
peachpuff4 (0.545,0.467,0.396)
peacock (0.200,0.631,0.788)
periwinkle (0.667,0.667,1.000)
permanentgreen (0.039,0.788,0.169)
peru (0.804,0.522,0.247)
pinegreen (0.000,0.200,0.000)
pink (1.000,0.753,0.796)
pink1 (1.000,0.710,0.773)
pink2 (0.933,0.663,0.722)
pink3 (0.804,0.569,0.620)
pink4 (0.545,0.388,0.424)
plum (0.867,0.627,0.867)
plum (0.918,0.678,0.918)
plum1 (1.000,0.733,1.000)
plum2 (0.933,0.682,0.933)
plum3 (0.804,0.588,0.804)
plum4 (0.545,0.400,0.545)
popcornyellow (1.000,1.000,0.667)
powderblue (0.690,0.878,0.902)
purple (0.502,0.000,0.502)
purple (0.627,0.125,0.941)
purple1 (0.608,0.188,1.000)
purple2 (0.569,0.173,0.933)
purple3 (0.490,0.149,0.804)
purple4 (0.333,0.102,0.545)
purple6 (0.667,0.000,1.000)
pyridiumorange (0.941,0.659,0.016)
quartz (0.851,0.851,0.953)
ralphyellow (0.800,0.800,0.000)
raspberry (0.529,0.149,0.341)
rawsienna (0.780,0.380,0.078)
rawumber (0.451,0.290,0.071)
red (1.000,0.000,0.000)
red2 (0.933,0.000,0.000)
red3 (0.804,0.000,0.000)
richblue (0.349,0.349,0.671)
rose (1.000,0.000,0.800)
rosemadder (0.890,0.212,0.220)
rosybrown (0.737,0.561,0.561)
rosybrown1 (1.000,0.757,0.757)
rosybrown2 (0.933,0.706,0.706)
rosybrown3 (0.804,0.608,0.608)
rosybrown4 (0.545,0.412,0.412)
royalblue (0.255,0.412,0.882)
royalblue (0.200,0.200,1.000)
royalblue1 (0.282,0.463,1.000)
royalblue2 (0.263,0.431,0.933)
royalblue3 (0.227,0.373,0.804)
royalblue4 (0.153,0.251,0.545)
salmon (0.980,0.502,0.447)
salmon1 (1.000,0.549,0.412)
salmon2 (0.933,0.510,0.384)
salmon3 (0.804,0.439,0.329)
salmon4 (0.545,0.298,0.224)
salmon5 (0.435,0.259,0.259)
sand (1.000,0.800,0.600)
sandybrown (0.957,0.643,0.376)
sapgreen (0.188,0.502,0.078)
scarlet (0.549,0.090,0.090)
seagreen (0.000,1.000,0.667)
seagreen (0.137,0.557,0.408)
seagreen (0.180,0.545,0.341)
seagreen1 (0.329,1.000,0.624)
seagreen2 (0.306,0.933,0.580)
seagreen3 (0.263,0.804,0.502)
seashell (1.000,0.961,0.933)
seashell2 (0.933,0.898,0.871)
seashell3 (0.804,0.773,0.749)
seashell4 (0.545,0.525,0.510)
sepia (0.369,0.149,0.071)
sgibeet (0.557,0.220,0.557)
sgibrightgray (0.773,0.757,0.667)
sgichartreuse (0.443,0.776,0.443)
sgilightblue (0.490,0.620,0.753)
sgilightgray (0.667,0.667,0.667)
sgiolivedrab (0.557,0.557,0.220)
sgisalmon (0.776,0.443,0.443)
sgiteal (0.220,0.557,0.557)
sienna (0.557,0.420,0.137)
sienna (0.627,0.322,0.176)
sienna1 (1.000,0.510,0.278)
sienna2 (0.933,0.475,0.259)
sienna3 (0.804,0.408,0.224)
sienna4 (0.545,0.278,0.149)
silver (0.753,0.753,0.753)
silver (0.902,0.910,0.980)
skyblue (0.529,0.808,0.922)
skyblue1 (0.529,0.808,1.000)
skyblue2 (0.494,0.753,0.933)
skyblue3 (0.424,0.651,0.804)
skyblue4 (0.290,0.439,0.545)
skyblue5 (0.000,0.600,0.094)
skyblue6 (0.196,0.600,0.800)
slateblue (0.000,0.498,1.000)
slateblue (0.416,0.353,0.804)
slateblue1 (0.514,0.435,1.000)
slateblue2 (0.478,0.404,0.933)
slateblue3 (0.412,0.349,0.804)
slateblue4 (0.278,0.235,0.545)
slategray (0.439,0.502,0.565)
slategray1 (0.776,0.886,1.000)
slategray2 (0.725,0.827,0.933)
slategray3 (0.624,0.714,0.804)
slategray4 (0.424,0.482,0.545)
snow (1.000,0.980,0.980)
snow2 (0.933,0.914,0.914)
snow3 (0.804,0.788,0.788)
snow4 (0.545,0.537,0.537)
spicypink (1.000,0.110,0.682)
springgreen (0.000,1.000,0.498)
springgreen (0.000,1.000,0.200)
springgreen2 (0.000,0.933,0.463)
springgreen3 (0.000,0.804,0.400)
springgreen4 (0.000,0.545,0.271)
steelblue (0.137,0.420,0.557)
steelblue (0.275,0.510,0.706)
steelblue1 (0.388,0.722,1.000)
steelblue2 (0.361,0.675,0.933)
steelblue3 (0.310,0.580,0.804)
steelblue4 (0.212,0.392,0.545)
summersky (0.220,0.690,0.871)
tan (0.824,0.706,0.549)
tan (0.859,0.576,0.439)
tan (0.933,0.533,0.200)
tan1 (1.000,0.647,0.310)
tan2 (0.933,0.604,0.286)
tan4 (0.545,0.353,0.169)
teal (0.000,0.502,0.502)
teal (0.000,1.000,0.800)
terreverte (0.220,0.369,0.059)
thistle (0.847,0.749,0.847)
thistle1 (1.000,0.882,1.000)
thistle2 (0.933,0.824,0.933)
thistle3 (0.804,0.710,0.804)
thistle4 (0.545,0.482,0.545)
titaniumwhite (0.988,1.000,0.941)
tomato (1.000,0.388,0.278)
tomato2 (0.933,0.361,0.259)
tomato3 (0.804,0.310,0.224)
tomato4 (0.545,0.212,0.149)
truegreen (0.000,0.686,0.200)
truepurple (0.600,0.000,0.600)
turquoise (0.059,0.867,0.686)
turquoise (0.678,0.918,0.918)
turquoise (0.251,0.878,0.816)
turquoise1 (0.000,0.961,1.000)
turquoise2 (0.000,0.898,0.933)
turquoise3 (0.000,0.773,0.804)
turquoise4 (0.000,0.525,0.545)
turquoiseblue (0.000,0.780,0.549)
ultramarine (0.071,0.039,0.561)
ultramarineviolet (0.361,0.141,0.431)
vandykebrown (0.369,0.149,0.020)
venetianred (0.831,0.102,0.122)
verydarkbrown (0.361,0.251,0.200)
verylightgrey (0.804,0.804,0.804)
violet (0.561,0.369,0.600)
violet (0.933,0.510,0.933)
violet (0.310,0.184,0.310)
violetred (0.800,0.196,0.600)
violetred (0.816,0.125,0.565)
violetred1 (1.000,0.243,0.588)
violetred2 (0.933,0.227,0.549)
violetred3 (0.804,0.196,0.471)
violetred4 (0.545,0.133,0.322)
viridianlight (0.431,1.000,0.439)
warmgrey (0.502,0.502,0.412)
wasabi (0.400,1.000,0.400)
wheat (0.847,0.847,0.749)
wheat (0.961,0.871,0.702)
wheat1 (1.000,0.906,0.729)
wheat2 (0.933,0.847,0.682)
wheat3 (0.804,0.729,0.588)
wheat4 (0.545,0.494,0.400)
white (1.000,1.000,1.000)
yellow (1.000,1.000,0.000)
yellow2 (0.933,0.933,0.000)
yellow3 (0.804,0.804,0.000)
yellow4 (0.545,0.545,0.000)
yellowgreen (0.600,0.800,0.196)
yellowochre (0.890,0.510,0.090)
zincwhite (0.992,0.973,1.000)
_____________________
Creativity represents a miraculous coming together of the uninhibited energy of the child with its apparent opposite and enemy, the sense of order imposed on the disciplined adult intelligence.
Norman Podhoretz
......................
If quizzes are quizzical, what are tests? :eek:
............................
Do illiterate people get the full effect of Alphabet Soup? :rolleyes:
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-10-2007 17:19
I can't find a script that was in a thread last year. It did a simple combination of just 3 values:

1.0

0.5

0.0

Any combination of those 3 will give you just the "pretty" colors.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
09-11-2007 08:03
Thanks everyone for your contributions, and especially to Echo for providing the comprehensive list that I sought. This will save many hours of tedious work.

The essense of the idea is expressed in the following code. Obviously this is for illustration purposes and in practice will contain vectors selected from the colour chart, and/or from Color Wheel Combinations, as suggested by Vlad.

Again, thanks :)

From: someone


list BaseColours = [<1,0,0>,<0,1,0>,<0,0,1>];

default
{

state_entry()
{
llSetTimerEvent(1.0);
}

timer()
{
vector StartColour = llList2Vector(BaseColours,(integer)llFrand(llGetListLength(BaseColours)));
llSetColor(StartColour, ALL_SIDES);
}
}


Where the randomly-selected colour is not required to be assigned to a variable, and is instead used as a parameter within a function call, the following works well too:

From: someone

llSetColor(llList2Vector(BaseColours,(integer)llFrand(llGetListLength(BaseColours))), ALL_SIDES);