RISC OS Open

RISC OS  OPEN


A fast and easily customised operating system for devices using ARM processor cores.

Documentation: ColourTrans_ConvertHSVToRGB

Programmer’s Reference Manuals
» Part 8 – Non-kernel input/output
» ColourTrans
» SWI Calls
» ColourTrans_ConvertHSVToRGB

ColourTrans_ConvertHSVToRGB

(SWI &40759)

Entry
R0 Hue (0 – 360)
R1 Saturation
R2 Value

Exit
R0 Red component
R1 Green component
R2 Blue component

Use

The purpose of this call is to convert the colour passed as CMYK values to RGB values.

Notes

The parameters passed are fixed point 32-bit numbers. The lower 16 bits (0 – 15) are used below the decimal point, and the upper 16 bits above the decimal point.

Hue values range from 0 – 360 (without any fractional element).

An error will be generated if both the hue and saturation are both 0.

See also

   .