Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/Color.h |
Include |
#include "Math/Color.h" |
struct FColor
FColor Stores a color with 8 bits of precision per channel. Note: Linear color values should always be converted to gamma space before stored in an FColor, as 8 bits of precision is not enough to store linear space colors! This can be done with FLinearColor::ToFColor(true)
Name | Description | ||
---|---|---|---|
|
union FColor::@... |
@381 |
Variables. |
|
uint8 |
A |
|
|
uint8 |
B |
|
|
uint32 |
Bits |
|
|
uint8 |
G |
|
|
uint8 |
R |
Name | Description | ||
---|---|---|---|
|
float |
DequantizeUNorm16ToFloat ( |
|
|
float |
DequantizeUNorm8ToFloat ( |
|
|
const uint32... |
DWColor() |
|
|
uint32 & |
DWColor() |
|
|
FromHex ( |
Creates a color value from the given hexadecimal string. |
|
|
FromRGBE() |
Converts from RGBE to a linear float color as outlined in Gregory Ward's Real Pixels article, Graphics Gems II, page 80. |
|
|
bool |
InitFromString ( |
Initialize this Color based on an FString. |
|
MakeFromColorTemperature ( |
Converts temperature in Kelvins of a black body radiator to RGB chromaticity. |
|
|
MakeRandomColor() |
Makes a random but quite nice color. |
|
|
MakeRandomSeededColor ( |
Makes a random color based on a seed. |
|
|
MakeRedToGreenColorFromScalar ( |
Makes a color red->green with the passed in scalar (e.g. 0 is red, 1 is green) |
|
|
MakeRequantizeFrom1010102 ( |
Return 8-bit color Quantized from 10-bit RGB , 2-bit A |
|
|
uint16 |
QuantizeUNormFloatTo16 ( |
|
|
uint8 |
QuantizeUNormFloatTo8 ( |
Conversions to/from GPU UNorm floats, U8, U16 matches convention of FColorFLinearColor::QuantizeRound |
|
ReinterpretAsLinear() |
Reinterprets the color as a linear color. |
|
|
uint8 |
Requantize10to8 ( |
|
|
uint8 |
Requantize16to8 ( |
|
|
bool |
Serialize ( |
|
|
bool |
Serialize ( |
|
|
ToHex() |
Converts this color value to a hexadecimal string. The format of the string is RRGGBBAA. |
|
|
uint32 |
ToPackedABGR() |
Gets the color in a packed uint32 format packed in the order ABGR. |
|
uint32 |
ToPackedARGB() |
Gets the color in a packed uint32 format packed in the order ARGB. |
|
uint32 |
ToPackedBGRA() |
Gets the color in a packed uint32 format packed in the order BGRA. |
|
uint32 |
ToPackedRGBA() |
Gets the color in a packed uint32 format packed in the order RGBA. |
|
ToString() |
Converts this color value to a string. |
|
|
WithAlpha ( |
Name | Description | ||
---|---|---|---|
|
bool |
operator!= ( |
|
|
void |
operator+= ( |
|
|
bool |
operator== ( |
Operators. |