Declaration ​
pascal
TXYSqrtGradientSampler = class(TCustomCenterRadiusAngleLutGradientSampler)Description ​
TXYSqrtGradientSampler samples a square-root product gradient defined by the square root of the multiplication of the X and Y coordinate values.
It is related to the XY color gradient, but mapped using the square root, resulting in more evenly spaced colors.
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.
| Clamp | Mirror | Repeat |
|---|---|---|
![]() | ![]() | ![]() |
Mathematics & Algorithm ​
Given local rotated offset coordinates


