Author Topic: Color list used in saving macros?  (Read 1838 times)

If you look at a saved macro, you'll notice a list of colors that take up quite of few lines of code.

I'm curious.  What is the function to return that list of colors if you wanted to reference that list?  I assume the list changes per the server color list, so if I wanted to make an array of colors from that list, what would I do?

%colors[%color] = ???

i am looking through my saved macros, and i cannot find colors. do you have an example of what you are looking at?

Crap, I meant to say brick saves, not macro saves.

Code: [Select]
0.898039 0.000000 0.000000 1.000000
0.898039 0.898039 0.000000 1.000000
0.000000 0.498039 0.247059 1.000000
0.200000 0.000000 0.800000 1.000000
0.898039 0.898039 0.898039 1.000000
0.749020 0.749020 0.749020 1.000000
0.498039 0.498039 0.498039 1.000000
0.200000 0.200000 0.200000 1.000000
0.392157 0.192157 0.000000 1.000000
0.901961 0.337255 0.078431 1.000000
0.749020 0.176471 0.482353 1.000000
0.384314 0.000000 0.113725 1.000000
0.129412 0.266667 0.266667 1.000000
0.000000 0.137255 0.329412 1.000000
0.101961 0.458824 0.764706 1.000000
1.000000 1.000000 1.000000 1.000000
0.078431 0.078431 0.078431 1.000000
1.000000 1.000000 1.000000 0.247059
0.921569 0.513726 0.674510 1.000000
1.000000 0.603922 0.419608 1.000000
1.000000 0.874510 0.611765 1.000000
0.956863 0.874510 0.784314 1.000000
0.784314 0.921569 0.486275 1.000000
0.537255 0.694118 0.549020 1.000000
0.556863 0.929412 0.956863 1.000000
0.694118 0.658824 0.901961 1.000000
0.874510 0.556863 0.956863 1.000000
0.666667 0.000000 0.000000 0.698039
1.000000 0.498039 0.000000 0.698039
0.988235 0.956863 0.000000 0.698039
0.000000 0.470588 0.192157 0.698039
0.000000 0.200000 0.639216 0.698039
0.592157 0.156863 0.392157 0.694118
0.549020 0.698039 1.000000 0.698039
0.847059 0.847059 0.847059 0.698039
0.098039 0.098039 0.098039 0.698039
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000
1.000000 0.000000 1.000000 0.000000

Not to hi jack the thread, but since it says macro's...
Is there a way to change the colors in your macro by script or do you have to redo the whole macro?

Maybe this may help but, the list of colors are in base/config/server/ColorSet.txt

Loel, not to be mean, but I do know where the color set is. Thanks for trying to help, but not exactly what we're looking for.

To produce a color list like the one above, you can use the following code:

for(%i = 0;%i < 64;%i++)
{
     %colors[%i] = getColorIDTable(%i);
     <any additional actions you want to perform with that color here>
}