Add RandColour

This commit is contained in:
Steve Streeting 2023-11-07 15:20:01 +00:00
parent d3c97fc992
commit 682039dd8b

View File

@ -151,6 +151,12 @@ public:
return FMath::Lerp(Min, Max, Rand()); return FMath::Lerp(Min, Max, Rand());
} }
/// Random colour value
FLinearColor RandColour(const FLinearColor& From, const FLinearColor& To) const
{
return FLinearColor::LerpUsingHSV(From, To, Rand());
}
/** /**
* Gets the current seed. * Gets the current seed.
* *