HSVtoRGB
From GECK
A function added by the JohnnyGuitar NVSE Plugin version 4.20.
Contents
Description
Takes values of Hue (from 0 to 360 degrees), Saturation and Value (percentage from 0 to 1) and returns values of Red, Green and Blue channels (from 0 to 255). Uses script variables as inputs and outputs.
Syntax
HSVtoRGB hIn:scriptVar sIn:scriptVar vIn:scriptVar rOut:scriptVar gOut:scriptVar bOut:scriptVar
Example
float hIn = 300 float sIn = 0.5 float vIn = 0.3 int rOut int gOut int bOut HSVtoRGB hIn sIn vIn rOut gOut bOut