java.lang.Object
io.github.shimeoki.jfx.rasterization.triangle.SolidFiller
All Implemented Interfaces:
Filler

public final class SolidFiller extends Object implements 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 Details

  • Method Details

    • color

      public Colorf color(Barycentrics b, Point2i p)
      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.

      Specified by:
      color in interface Filler
      Parameters:
      b - barycentric coordinates
      p - pixel coordinates
      Returns:
      color for this point; can be null