Declaring a vector variable

I want to pass a variable to the FColor(r,g,b,a) function.

Something like this:

FVector4 MyColor = FVector4(150,150,150,50);
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor(MyColor), TEXT("Hello."));

Which does not work. What is the proper way to declare MyColor?

EDIT:


For anyone wondering, through the guidance of the answer below I got it to work as I want it with:

		FColor MyColor = FColor(150,150,150,50);
		GEngine->AddOnScreenDebugMessage(-1, 5.0f, MyColor, TEXT("Hello."));

(The 150.0/255.0 normalization is not needed since the function wants a value between 0 and 255.)

Thank you!

FColor MyColor = FColor(150.0/255.0, 150.0/255.0, 150.0/255.0, 50.0/255.0);

Even though the 150.0/255.0 normalization doesn’t work here, it wants a value between 0 and 255.

If it’s important you can create an FLinearColor which stores floats, and use it to get an FColor from those values. You can also create FVector4s from FLinearColor and vice versa.