Answered
Channel mixer
Channel mixer
I created a small random script
for the variable creation of bn
I'm having a hard time
I would like the sum of the three colors in random to always be +100

you have some solution
thank you
Channel mixer
I created a small random script
for the variable creation of bn
I'm having a hard time
I would like the sum of the three colors in random to always be +100

you have some solution
thank you
Try this
var a = Math.round((400*Math.random())) - 200;
var b;
do { b = Math.round((400*Math.random())) - 200; } while (a+b > 100 || a+b < -100);
var c = 100-a-b;
alert(a + " " + b + " " + c + " = "+(a+b+c));
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.