Class GuiGradient

java.lang.Object
com.render.api.gui.GuiGradient

public final class GuiGradient extends Object
Browser-style gradient configuration for GUI backgrounds.

Linear gradients keep the original two-color API, while arbitrary color stops, radial/conic geometry, repeating paint, and lookup quality are additive options. Keep a configured instance on a retained component or custom painted component instead of constructing an equivalent gradient every frame; this lets the renderer reuse one managed lookup texture. If that GPU texture is invalidated, the current frame safely uses the adaptive mesh path and recreates the lookup on demand.