FMX.Graphics.TGradient.InterpolateColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function InterpolateColor(Offset: Single): TAlphaColor; overload;
function InterpolateColor(X, Y: Single): TAlphaColor; overload;

C++

System::Uitypes::TAlphaColor __fastcall InterpolateColor(float Offset)/* overload */;
System::Uitypes::TAlphaColor __fastcall InterpolateColor(float X, float Y)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TGradient

Description

Returns the color from the specified Offset.

Use the InterpolateColor function to compute the color from the gradient's Offset specified by the parameter. The Offset argument must be in the range from 0 through 1 and, by default, the first color is at 0 and the second color is at 1. The Offsets of these colors can be changed and there can be more than two color points at various offsets.

See Also