FMX.Utils.Vector3DToColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Vector3DToColor(const AColor: TVector3D): TAlphaColor;

C++

extern DELPHI_PACKAGE System::Uitypes::TAlphaColor __fastcall Vector3DToColor _DEPRECATED_ATTRIBUTE1("Use TAlphaColorF instead.") (const System::Math::Vectors::TVector3D &AColor);

Properties

Type Visibility Source Unit Parent
function public
FMX.Utils.pas
FMX.Utils.hpp
FMX.Utils FMX.Utils

Description

Warning: Vector3DToColor is deprecated. Please use System.UITypes.TAlphaColorF.

Creates an alpha color based on the X, Y, and Z coordinates of the given 3D vector.

The X, Y, and Z components of the given 3D vector are the variations of the red, green, and blue components, respectively.

The opacity of the alpha color is set to 255 (solid color).

See Also