Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/Color.h |
Include |
#include "Math/Color.h" |
struct FLinearColor
A linear, 32-bit/component floating point RGBA color.
Name | Description | ||
---|---|---|---|
|
union FLinearCo... |
@377 |
|
|
float |
A |
|
|
float |
B |
|
|
float |
G |
|
|
float |
R |
|
|
float[4] |
RGBA |
Name | Description | |
---|---|---|
|
FLinearColor() |
|
|
FLinearColor ( |
|
|
FLinearColor ( |
Converts an FColor which is assumed to be in sRGB space, into linear color space. |
|
FLinearColor ( |
|
|
FLinearColor ( |
|
|
FLinearColor ( |
|
|
FLinearColor ( |
|
|
FLinearColor ( |
Use Float16Color::GetFloats() directly |
|
FLinearColor ( |
Name | Description | ||
---|---|---|---|
|
float |
Clamp01NansTo0 ( |
Helper for pixel format conversions. |
|
float & |
Component ( |
|
|
const float ... |
Component ( |
|
|
CopyWithNewOpacity ( |
||
|
Desaturate ( |
Returns a desaturated color, with 0 meaning no desaturation and 1 == full desaturation |
|
|
float |
Dist ( |
Euclidean distance between two points. |
|
bool |
Equals ( |
Error-tolerant comparison. |
|
float |
EvaluateBezier ( |
Generates a list of sample points on a Bezier curve defined by 2 points. |
|
FromPow22Color ( |
Converts an FColor coming from an observed Pow(1/2.2) output, into a linear color. |
|
|
FromSRGBColor ( |
Converts an FColor coming from an observed sRGB output, into a linear color. |
|
|
GetClamped ( |
Clamped in 0..1 range |
|
|
float |
GetLuminance() |
Computes the perceptually weighted luminance value of a color. |
|
float |
GetMax() |
Returns the maximum value in this color structure |
|
float |
GetMin() |
Returns the minimum value in this color structure |
|
HSVToLinearRGB() |
Converts an HSV color to a linear space RGB color |
|
|
bool |
InitFromString ( |
Initialize this Color based on an FString. |
|
bool |
IsAlmostBlack() |
Useful to detect if a light contribution needs to be rendered |
|
LerpUsingHSV ( |
Linearly interpolates between two colors by the specified progress amount. |
|
|
LinearRGBToHSV() |
Converts a linear space RGB color to an HSV color |
|
|
MakeFromColorTemperature ( |
Converts temperature in Kelvins of a black body radiator to RGB chromaticity. |
|
|
MakeFromHSV8 ( |
Converts byte hue-saturation-brightness to floating point red-green-blue. |
|
|
MakeRandomColor() |
Makes a random but quite nice color. |
|
|
MakeRandomSeededColor ( |
Makes a random color based on a seed. |
|
|
QuantizeFloor() |
Quantizes the linear color and returns the result as a FColor. |
|
|
QuantizeRound() |
Quantizes the linear color with rounding and returns the result as a FColor. |
|
|
bool |
Serialize ( |
|
|
ToFColor ( |
||
|
ToFColorSRGB() |
Quantizes the linear color and returns the result as a FColor with optional sRGB conversion. |
|
|
ToRGBE() |
Conversions. |
|
|
ToString() |
Name | Description | ||
---|---|---|---|
|
operator- ( |
||
|
bool |
operator!= ( |
|
|
operator* ( |
||
|
operator* ( |
||
|
FLinearColor... |
operator*= ( |
|
|
FLinearColor... |
operator*= ( |
|
|
operator/ ( |
||
|
operator/ ( |
||
|
FLinearColor... |
operator/= ( |
|
|
FLinearColor... |
operator/= ( |
|
|
operator+ ( |
||
|
FLinearColor... |
operator+= ( |
|
|
FLinearColor... |
operator-= ( |
|
|
bool |
operator== ( |
Comparison operators |
Name |
Description |
---|---|
Black |
|
Blue |
|
Gray |
|
Green |
|
Pow22OneOver255Table |
Static lookup table used for FColor -> FLinearColor conversion. |
Red |
|
sRGBToLinearTable |
Static lookup table used for FColor -> FLinearColor conversion. |
Transparent |
|
White |
Common colors. |
Yellow |
Name | Description | ||
---|---|---|---|
|
FGetHSV ( |
FGetHSV doesn't perform a valid HSV conversion, use MakeFromHSV8 instead |
|
|
Quantize() |
Most callers of Quantize should have been calling QuantizeRound; to match old behavior use QuantizeFloor |