drawOutline

fun DrawContext.drawOutline(x: Int, y: Int, width: Int, height: Int, color: Int)

Extension function to draw a hollow rectangle.

You'll still have to write to the buffers after using this.

Author

theendercore

Since

0.7.3?

Parameters

x

horizontal position of element

y

vertical position of element

width
  • the width of the rectangle region in pixels

height
  • the height of the rectangle region in pixels

color
  • the height of the rectangle region in pixels