Class GuiMeshGradient
java.lang.Object
com.render.api.gui.paint.GuiMeshGradient
Immutable rectangular mesh-gradient definition.
Each patch stores four corner colors and optional cubic boundary control points. Control points use normalized patch coordinates and are ordered as two controls for the top edge (left to right), right edge (top to bottom), bottom edge (left to right), and left edge (top to bottom). RenderLib evaluates those boundaries as a Coons patch and adaptively tessellates it in device space.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionGuiMeshGradient(int columns, int rows, List<GuiMeshGradient.Patch> patches, int quality) -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()patch(int column, int row) patches()intquality()introws()static GuiMeshGradientsingle(GuiMeshGradient.Patch patch)
-
Constructor Details
-
GuiMeshGradient
-
-
Method Details
-
single
-
columns
public int columns() -
rows
public int rows() -
patches
-
quality
public int quality() -
patch
-