Choose your operating system:
Windows
macOS
Linux
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. This can be done with FLinearColor::ToFColor(true)
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. |
|
|
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. |
|
|
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 |
|
|
QuantizeUNormFloatTo16 ( |
||
|
QuantizeUNormFloatTo8 ( |
Conversions to/from GPU UNorm floats, U8, U16 matches convention of FColorFLinearColor::QuantizeRound |
|
|
ReinterpretAsLinear() |
Reinterprets the color as a linear color. |
|
|
Requantize10to8 ( |
||
|
Requantize16to8 ( |
||
|
Serialize ( |
||
|
Serialize ( |
||
|
ToHex() |
Converts this color value to a hexadecimal string. The format of the string is RRGGBBAA. |
|
|
ToPackedABGR() |
Gets the color in a packed uint32 format packed in the order ABGR. |
|
|
ToPackedARGB() |
Gets the color in a packed uint32 format packed in the order ARGB. |
|
|
ToPackedBGRA() |
Gets the color in a packed uint32 format packed in the order BGRA. |
|
|
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 | ||
---|---|---|---|
|
operator!= ( |
||
|
operator+= ( |
||
|
operator== ( |
Operators. |