qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Static Public Member Functions | List of all members
ccColor::Convert Class Reference

Color space conversion. More...

#include <ccColorTypes.h>

Static Public Member Functions

static Rgb hsl2rgb (float H, float S, float L)
 Converts a HSL color to RGB color space. More...
 
static QCC_DB_LIB_API Rgb hsv2rgb (float H, float S, float V)
 Converts a HSV color to RGB color space. More...
 

Detailed Description

Color space conversion.

Member Function Documentation

◆ hsl2rgb()

static Rgb ccColor::Convert::hsl2rgb ( float  H,
float  S,
float  L 
)
inlinestatic

Converts a HSL color to RGB color space.

Parameters
H[out] hue [0;360[
S[out] saturation [0;1]
L[out] light [0;1]
Returns
RGB color (unsigned byte)

◆ hsv2rgb()

Rgb ccColor::Convert::hsv2rgb ( float  H,
float  S,
float  V 
)
static

Converts a HSV color to RGB color space.

Parameters
H[out] hue [0;360[
S[out] saturation [0;1]
V[out] value [0;1]
Returns
RGB color (unsigned byte)

The documentation for this class was generated from the following files: