#include <Color.h>
◆ FColor() [1/4]
◆ FColor() [2/4]
◆ FColor() [3/4]
◆ FColor() [4/4]
◆ DequantizeUNorm16ToFloat()
| static float FColor::DequantizeUNorm16ToFloat |
( |
int |
Value16 | ) |
|
|
inlinestatic |
◆ DequantizeUNorm8ToFloat()
| static float FColor::DequantizeUNorm8ToFloat |
( |
int |
Value8 | ) |
|
|
inlinestatic |
◆ DWColor() [1/2]
◆ DWColor() [2/2]
◆ FromHex()
| FColor FColor::FromHex |
( |
const FString & |
HexString | ) |
|
|
static |
Creates a color value from the given hexadecimal string.
Supported formats are: RGB, RRGGBB, RRGGBBAA, RGB, RRGGBB, RRGGBBAA
- Parameters
-
| HexString | - The hexadecimal string. |
- Returns
- The corresponding color value.
- See also
- ToHex
◆ FromRGBE()
◆ InitFromString()
| bool FColor::InitFromString |
( |
const FString & |
InSourceString | ) |
|
Initialize this Color based on an FString. The String is expected to contain R=, G=, B=, A=. The FColor will be bogus when InitFromString returns false.
- Parameters
-
| InSourceString | FString containing the color values. |
- Returns
- true if the R,G,B values were read successfully; false otherwise.
◆ MakeFromColorTemperature()
Converts temperature in Kelvins of a black body radiator to RGB chromaticity.
◆ MakeRandomColor()
| FColor FColor::MakeRandomColor |
( |
| ) |
|
|
static |
Makes a random but quite nice color.
◆ MakeRandomSeededColor()
Makes a random color based on a seed.
◆ MakeRedToGreenColorFromScalar()
| FColor FColor::MakeRedToGreenColorFromScalar |
( |
float |
Scalar | ) |
|
|
static |
Makes a color red->green with the passed in scalar (e.g. 0 is red, 1 is green)
◆ MakeRequantizeFrom1010102()
| static FColor FColor::MakeRequantizeFrom1010102 |
( |
int |
R, |
|
|
int |
G, |
|
|
int |
B, |
|
|
int |
A |
|
) |
| |
|
inlinestatic |
Return 8-bit color Quantized from 10-bit RGB , 2-bit A
◆ operator!=()
◆ operator+=()
◆ operator==()
◆ QuantizeUNormFloatTo16()
◆ QuantizeUNormFloatTo8()
◆ ReinterpretAsLinear()
Reinterprets the color as a linear color. This is the correct dequantizer for QuantizeRound. This matches the GPU spec conversion for U8<->float
- Returns
- The linear color representation.
◆ Requantize10to8()
◆ Requantize16to8()
◆ Serialize() [1/2]
◆ Serialize() [2/2]
◆ ToHex()
| FString FColor::ToHex |
( |
| ) |
const |
Converts this color value to a hexadecimal string.
The format of the string is RRGGBBAA.
- Returns
- Hexadecimal string.
- See also
- FromHex, ToString
◆ 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()
| FString FColor::ToString |
( |
| ) |
const |
Converts this color value to a string.
- Returns
- The string representation.
- See also
- ToHex
◆ WithAlpha()
- Returns
- a new FColor based of this color with the new alpha value. Usage: const FColor& MyColor = FColorList::Green.WithAlpha(128);
◆ GetTypeHash
◆ operator<< [1/2]
◆ operator<< [2/2]
◆ [union]
◆ Bits
◆ Black
◆ Blue
◆ Cyan
◆ Emerald
◆ Green
◆ Magenta
◆ Orange
◆ Purple
◆ Red
◆ Silver
◆ Transparent
| const FColor FColor::Transparent |
|
static |
◆ Turquoise
| const FColor FColor::Turquoise |
|
static |
◆ White
Some pre-inited colors, useful for debug code
◆ Yellow
The documentation for this struct was generated from the following files:
- Engine/Source/Runtime/Core/Public/Math/Color.h
- Engine/Source/Runtime/Core/Private/Math/Color.cpp