Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you convert HSV to RGB like that of toHSV?

Asked by 3 years ago

So I need to convert HSV to RGB for a color picker I am making from scratch though the problem is that I don't know how to. I know of toHSV but there is not toRGB so I don't know what to do

local ColorOfHSV = Color3.fromHSV(0.6, 0.8, 1)

-- What to do to convert it to RGB?

2 answers

Log in to vote
0
Answered by 3 years ago

Just use the function like this:

local Color = Colo3.fromRGB(255,0,0) — red
0
its Color3 not Colo3 Filip100012 58 — 3y
0
He doesn't want to use RGB by default, read the question. He wants to convert HSV to RGB. pwx 1581 — 3y
Ad
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Turns out that if I put the HSV in to something like frame and get the Backgroundcolor3 it gives me an RBG but its like normailized so if I put an HSV of (1, 1, 1) and put it in to a backgroundcolor3 and call the background property again it will return (1, 0, 0) which all I have to do is just multiply by 255 to get the RGB value and boom, this is still something that is not that good to do so I will still keep up the question up

Answer this question