Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_ColorGradients🞂TXYGradientSamplerClass

TXYGradientSampler

Bilinear product gradient sampler.

Inheritance:TObject 🞂 TPersistent 🞂 TNotifiablePersistent 🞂 TCustomSampler 🞂 TCustomGradientSampler 🞂 TCustomGradientLookUpTableSampler 🞂 TCustomCenterLutGradientSampler 🞂 TCustomCenterRadiusLutGradientSampler 🞂 TCustomCenterRadiusAngleLutGradientSampler 🞂 TXYGradientSampler

Declaration ​

pascal
TXYGradientSampler = class(TCustomCenterRadiusAngleLutGradientSampler)

Description ​

TXYGradientSampler samples a bilinear product gradient defined by the multiplication of the X and Y coordinate values.

Its size can be controlled using the Radius property, which is actually some sort of an incircle radius. The center can be set using the Center property. Finally the gradient can be rotated using the Angle property.

ClampMirrorRepeat

Mathematics & Algorithm ​

Given local rotated offset coordinates (X′,Y′) relative to center (Xc,Yc):

u=|X′⋅Y′|R2