Click or drag to resize
Ab4d.SharpEngine logo

Color4Clamp(Color4, Color4, Color4) Method

Restricts a value to be within a specified range.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Color4 Clamp(
	 in Color4 value,
	 in Color4 min,
	 in Color4 max
)

Parameters

value  Color4
The value to clamp.
min  Color4
The minimum value.
max  Color4
The maximum value.

Return Value

Color4
The clamped value.
See Also