Click or drag to resize
AB4D logo

ExtensionsSaturate Method

Overload List
 NameDescription
Public Extension MethodSaturate(Color3) Ensures that the color components are within 0 and 1 - if smaller than 0 than the value is set to 0; if bigger than 1 the value is set to 1. This is the same as saturate function in HLSL.
Public Extension MethodSaturate(Color4) Ensures that the color components are within 0 and 1 - if smaller than 0 than the value is set to 0; if bigger than 1 the value is set to 1. This is the same as saturate function in HLSL.
Top
See Also