mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Add RandColour
This commit is contained in:
parent
d3c97fc992
commit
682039dd8b
@ -151,6 +151,12 @@ public:
|
||||
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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user