FColor::MakeRedToGreenColorFromScalar

Makes a color red->green with the passed in scalar (e.g. 0 is red, 1 is green)

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Color.h

Include

#include "Math/Color.h"

Source

/Engine/Source/Runtime/Core/Private/Math/Color.cpp

Syntax

static FColor MakeRedToGreenColorFromScalar
(
    float Scalar
)

Remarks

Makes a color red->green with the passed in scalar (e.g. 0 is red, 1 is green)