Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

Just use the function like this:

local Color = Colo3.fromRGB(255,0,0) — red

2 comments

0

its Color3 not Colo3

0

He doesn't want to use RGB by default, read the question. He wants to convert HSV to RGB.

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

This discussion is preserved as it was. New answers, comments, and votes are closed.