Originally posted by tilleyj2121
i am trying to make
store shaders deping on base u are using
example Shark Base
im guessing
he uses
drawShader(shader, x, y, width, height, color, alpha, sort)
so fallow how its done example
self.menu.background = self drawShader("Shader", x, y, width, height, (color goes here), alpha, sort);
so heres how it looked filled in
self.menu.background = self drawShader("white", 0, -50, 250, 453, (0, 0, 0), 1, 1);
the number inside the parenthesis are your colors der difine by R,G,B
so
(1,0,0) = red
(0,0,0) = black
(0,1,0) = green
(0,0,1) = blue
nd so on lets say you want orange
so wat you do go to
this website
colorpicker.com
choose a color
example
You must login or register to view this content.
now in the bottom right u will see
R:
G:
B:
this the main one u need
so in this case mine are
R:255
G:149
B:0
So now you divide each one by 255
so my
R:255 divided by 255 will be 1
G:149 divided by 255 will be 0.58431372549 just grab the 1st 3 number so it will be .584
B:0 dived by 255 will 0
so now ur R G B LOOK like This
R:1
G:0.584
B:0
So now in your shaders put in inside the parenthesis
so it look like this
self.menu.background = self drawShader("white", 0, -50, 250, 453, (1,0.584,0), 1, 1);
hope this helped you.