ColorFFromRgb Method

Creates a ColorF structure from a Vector3 instance mapping X to R, Y to G and Z to B. The A component of the result will be 1.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public static ColorF FromRgb(
	Vector3 vector
)

Parameters

vector  Vector3
A Vector3 representing the RGB color components. The parameter is not validated, but you can use the IsValid property or the Clip method on the created result.

Return Value

ColorF
A ColorF structure converted from the specified Vector3.

See Also