HSVtoRGB

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin version 4.20.

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

[help]
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

See Also