BPSingleColorSettings Class Reference

#include <lib_paint.h>

Inheritance diagram for BPSingleColorSettings:

Detailed Description

Color settings.

Public Member Functions

void SetRGB (const Vector &rgb, Float i)
 
void GetRGB (Vector &rgb, Float &i)
 

Private Member Functions

 BPSingleColorSettings ()
 
 ~BPSingleColorSettings ()
 

Constructor & Destructor Documentation

◆ BPSingleColorSettings()

BPSingleColorSettings ( )
private

◆ ~BPSingleColorSettings()

~BPSingleColorSettings ( )
private

Member Function Documentation

◆ SetRGB()

void SetRGB ( const Vector rgb,
Float  i 
)

Sets the RGB color and intensity value for the color. The intensity value is internally multiplied against the RGB value.
An RGB value of (0.5,0.5,0.5) is Grey. If the RGB value is (1.0,1.0,1.0) and the intensity value is 0.5 then the resulting color is Grey (0.5,0.5,0.5).

Parameters
[in]rgbThe RGB color.
[in]iThe intensity value.

◆ GetRGB()

void GetRGB ( Vector rgb,
Float i 
)

Gets the RGB color and intensity value for the color. The intensity value is internally multiplied against the RGB value.
An RGB value of (0.5,0.5,0.5) is Grey. If the RGB value is (1.0,1.0,1.0) and the intensity value is 0.5 then the resulting color is Grey (0.5,0.5,0.5).

Parameters
[out]rgbThe RGB color.
[out]iThe intensity value.