Text Rendering

SimpleRendering.java
@name("Simple Rendering")
@author("Author")
@description("Simple Rendering Addon")

public void onRenderEvent(StitchRenderEvent event) {
    if (!event.isOverlay()) return;

    getRenderer().roundRectangle2D(
        event.getRenderStack(),
        20.0f, 20.0f,
        50.0f, 50.0f,
        4.0f, // rounding
        Color.WHITE
    );

    getRenderer().customText2D(
        StitchFontType.INTER_REGULAR,
        "Custom Text Rendering",
        20.0f, 8.0f,
        9.0f, // scale
        true, // shadow
        Color.WHITE
    );
}

Last updated