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

TBarycentricGradientPolygonFiller

Fills a polygon with 3-point barycentric linear color gradients.

Inheritance:TObject 🞂 TCustomPolygonFiller 🞂 TCustomSparsePointGradientPolygonFiller 🞂 TBarycentricGradientPolygonFiller

Declaration ​

pascal
TBarycentricGradientPolygonFiller = class(TCustomSparsePointGradientPolygonFiller)

Description ​

TBarycentricGradientPolygonFiller is polygon filler using a sparse point linear gradient interpolator using a barycentric coordinate system for interpolation.

Based on three (and only three) vertices, with each vertex specified with a certain color, a linear triangle of color is calculated. Typically the three vertices are mapped to the vertices of a given 3-point polygon that should be filled. However, this is not required as the colours extends outside this triangle.

References ​

See also ​