Any websites or script method that can mix two RGB color values?

The best I found is this which mixes 2 colors but not what I had expected HTML Color Mixer
I want like Blue + Yellow = green but in this website it shows grey

Any help?

I did bit of googling, and found this tool that works pretty well.

https://meyerweb.com/eric/tools/color-blend

It allows you to work with RGB if you like, and even provides a number of minpoints option.

1 Like

The reason this is happening is because you’re creating a gradient, not actually mixing them.

I’ve made this little script for you, however the downside is that it uses HSV, not RGB. I am not too sure how RGB would work as it doesn’t have an individual brightness and saturation value, however this function should mix two hues as you liked.

local colorOne = {

H = 0.1495,

S = 0.960739,

V = 0.998199

}

local colorTwo = {

H = 0.666667,

S = 1,

V = 0.998199

}

local GlobalH = function()

local tc

if colorOne.H < colorTwo.H then

tc = colorTwo.H - colorOne.H

else

tc = colorOne.H - colorTwo.H

end

return tc

end

local Mixed = Color3.new(

GlobalH,

1,

0.5

)

game.StarterGui.ScreenGui.Frame.BackgroundColor3 = Mixed
1 Like

Just noticed the indenting, apologies for that. You can fix it in this tab here.
Screen Shot 2020-10-09 at 2.26.45 PM

1 Like

Never seen that option before… I had to use Lua beautifier site, anyways thanks now it shows green from blue+yellow! :slight_smile:

1 Like

Sorry btw why is it showing decimal values?
Example HSV from Really blue is 240,255,255
does it have to be divided by 255?

1 Like

No, that’s RGB, HSV is hue, saturation, value (brightness), whereas RGB is red, green, blue.

1 Like

image
It shows HSV 240,255,255

1 Like

Hmmm, that’s weird. Do you have a colour picker options in the script editor when you type Color3.fromHSV()?

1 Like

I dont know what you mean script editor and I never used Color3.fromHSV only
Color3.fromRGB() this is the first time I use HSV

1 Like

Like, create a new script, and then type Color3.fromHSV() into that text box, and then under it, do you see any icons below it?

yep, tried it now it show triangle warning and its color red for some reason

1 Like

Yeah, press the colour wheel, and you can select your HSV from there. You should see it switches to decimals.

1 Like

That worked, well now in the future I have to manually check this script editor and hopefully Roblox notices this bug because for now I can’t report it to them

1 Like

Yeah, sorry about that. I’m not too sure what the formula is to go from HSV to RGB.

1 Like