natiny_render_rectangle_outline

C
void natiny_render_rectangle_outline(float x, float y, float w, float h, float thickness);

Draws a rectangle outline on the currently bound render target, using the current drawing color set by natiny_render_set_color().

Parameters

Name Type Description
x float Left edge X position
y float Top edge Y position
w float Width
h float Height
thickness float Outline thickness

Example

C
natiny_render_rectangle_outline(40.0f, 40.0f, 120.0f, 80.0f, 2.0f);

Notes

  • Each edge is centered on the rectangle boundary, so half the thickness lies inside and half outside.