23 template <
typename VectorType>
29 return (Color <= 0.04045f) ? Color / 12.92f :
FMathf::Pow((Color + 0.055f) / 1.055f, 2.4f);
38 template <
typename VectorType>
44 return (Color <= 0.0031308f) ? Color * 12.92f : 1.055f *
FMathf::Pow(Color, 1.0f / 2.4f) - 0.055f;
52 template <
typename VectorType>
55 return VectorType(
R,
G,
B);
58 template <
typename VectorType>
61 return VectorType(
R,
G,
B,
A);
64#define ColorConstant(ColorName, R, G, B) \
65 inline FLinearColor ColorName##3f() { return MakeColor3f<FLinearColor>(R, G, B); } \
66 inline FColor ColorName##3b() { return MakeColor3f<FLinearColor>(R, G, B).ToFColor(false); }
106 ColorConstant(BlueViolet, 0.541176470588f, 0.16862745098f, 0.886274509804f);
109 ColorConstant(CadetBlue, 0.372549019608f, 0.619607843137f, 0.627450980392f);
123 ColorConstant(DarkOliveGreen, 0.333333333333f, 0.419607843137f, 0.18431372549f);
129 ColorConstant(DarkSlateBlue, 0.282352941176f, 0.239215686275f, 0.545098039216f);
137 ColorConstant(Firebrick, 0.698039215686f, 0.133333333333f, 0.133333333333f);
139 ColorConstant(ForestGreen, 0.133333333333f, 0.545098039216f, 0.133333333333f);
144 ColorConstant(Goldenrod, 0.854901960784f, 0.647058823529f, 0.125490196078f);
148 ColorConstant(IndianRed, 0.803921568627f, 0.360784313725f, 0.360784313725f);
156 ColorConstant(LightBlue, 0.678431372549f, 0.847058823529f, 0.901960784314f);
167 ColorConstant(LightSteelBlue, 0.690196078431f, 0.76862745098f, 0.870588235294f);
170 ColorConstant(LimeGreen, 0.196078431373f, 0.803921568627f, 0.196078431373f);
175 ColorConstant(MediumOrchid, 0.729411764706f, 0.333333333333f, 0.827450980392f);
177 ColorConstant(MediumSeaGreen, 0.235294117647f, 0.701960784314f, 0.443137254902f);
178 ColorConstant(MediumSlateBlue, 0.482352941176f, 0.407843137255f, 0.933333333333f);
181 ColorConstant(MediumVioletRed, 0.780392156863f, 0.0823529411765f, 0.521568627451f);
182 ColorConstant(MidnightBlue, 0.0980392156863f, 0.0980392156863f, 0.439215686275f);
219 ColorConstant(SteelBlue, 0.274509803922f, 0.509803921569f, 0.705882352941f);
228 ColorConstant(YellowGreen, 0.603921568627f, 0.803921568627f, 0.196078431373f);
240 template <
typename VectorType>