Class SolidFiller
java.lang.Object
io.github.shimeoki.jfx.rasterization.triangle.SolidFiller
- All Implemented Interfaces:
Filler
One of the standard implementations of
Filler
to fill the
triangles with one color.
Accepts a Colorf
on creation and fills the triangles with the color
if barycentrics object is not null.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncolor
(Barycentrics b, Point2i p) Gets the color for the point on specified barycentrics and/or pixel coordinates.
-
Constructor Details
-
SolidFiller
Creates a newSolidFiller
instance.- Parameters:
c
- the color to use- Throws:
NullPointerException
- ifc
isnull
- Since:
- 2.0.0
-
-
Method Details
-
color
Description copied from interface:Filler
Gets the color for the point on specified barycentrics and/or pixel coordinates.The parameters can be not copies, but references to the objects, used by the triangler.
-