What's the a for?slpwnd wrote:It is floats. So for example {r=0.7, g=0.5, b=0.1, a=0.9}xnmo wrote:Thanks!
Is there a list of all the valid colours available? I can only figure out the primary colours and anything else turns him black.
Final MP testing
-
- Filter Inserter
- Posts: 778
- Joined: Sun Sep 07, 2014 12:59 pm
- Contact:
Re: Final MP testing
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.
Re: Final MP testing
Alpha channel I imagine. aka Transparency of the color to the base texture.
-
- Filter Inserter
- Posts: 778
- Joined: Sun Sep 07, 2014 12:59 pm
- Contact:
Re: Final MP testing
ah yes, thanks.
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.
Re: Final MP testing
chainedlupine wrote:Thanks for the player color changing code!
I had the same reaction when my friend joined. "Awww, but I wanted to be blue..."
I use this: http://prideout.net/archive/colors.php
Just use the numbers between 0 and 1 on the right. The meaning of the three numbers is the different colors red, green, blue.
Examples for usage:
/c game.players[1].color = {r=1, g=1, b=1}
That's for a white player one.
/c game.players[3].color = {r=0.824, g=0.412, b=0.118}
That's chocolate colored player three
-
- Filter Inserter
- Posts: 778
- Joined: Sun Sep 07, 2014 12:59 pm
- Contact:
Re: Final MP testing
Nice one, added that to the wiki.GewaltSam wrote:I use this: http://prideout.net/archive/colors.php
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.