Class WorldStroke
java.lang.Object
com.render.api.world.WorldStroke
Immutable stroke styling for lines, rings, arcs, outlines, and wire shapes.
Width, dash lengths, and dash offsets all use the selected width mode.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorldStroke(WorldPaint paint, float width, WorldWidthMode widthMode, WorldLineJoin join, WorldLineCap cap, float[] dashPattern, float dashOffset) -
Method Summary
Modifier and TypeMethodDescriptioncap()floatfloat[]booleanenabled()join()paint()static WorldStrokepixels(float width, RenderColor color) toString()floatwidth()withCap(WorldLineCap value) withDashes(float offset, float... pattern) withDashOffset(float offset) withJoin(WorldLineJoin value) withPaint(WorldPaint value) withWidth(float value, WorldWidthMode mode) static WorldStrokeworld(float width, RenderColor color)
-
Field Details
-
NONE
-
-
Constructor Details
-
WorldStroke
public WorldStroke(WorldPaint paint, float width, WorldWidthMode widthMode, WorldLineJoin join, WorldLineCap cap, float[] dashPattern, float dashOffset)
-
-
Method Details
-
world
-
pixels
-
paint
-
width
public float width() -
widthMode
-
join
-
cap
-
dashPattern
public float[] dashPattern() -
dashOffset
public float dashOffset() -
enabled
public boolean enabled() -
withPaint
-
withWidth
-
withJoin
-
withCap
-
withDashes
-
withDashOffset
-
toString
-