- Home /
How to use HSB color space in scripting instead of RGB?
I would want to use HSB for RenderSettings.ambientLighting
. Just want to change hue slowly over time to get psychedelic effect. People mention about HSB, but I google it and can't find scripts about it, same with scripting reference.
Thanks.
Update: JavaScript please
I strongly recommend you add this as a feature request to http://feedback.unity3d.com
Answer by Eric5h5 · Feb 27, 2010 at 01:42 PM
Use this script on the wiki.
Wow, is there a JavaScript version somewhere? Sorry I forgot to mention this in main question.
There doesn't need to be a Javascript version in order to use it in Javascript. It works fine as-is; just follow the directions on the wiki. Also a Javascript version would have to use a class rather than a struct, which isn't really desirable in this case.
Alrighty then. I'll try to figure out. I hoped it's a bit simpler.
Your answer
Follow this Question
Related Questions
HDR output (Rec 2020, Dolby Vision, HDR10) 1 Answer
Why doesnt unity find Hsb color? 1 Answer
Material doesn't have a color property '_Color' 4 Answers
Changing two different objects renderer colour 1 Answer
How to Use HSBColor script? 2 Answers