DrawLineFrame

From ZDoom Wiki
Jump to navigation Jump to search
Note: This feature is for ZScript only.


Screen

native static void DrawLineFrame(Color color, int x0, int y0, int w, int h, int thickness = 1)

Usage

Draws a line frame around the given bounding box with the specified line thickness. Coordinates are absolute and start from the top left of the screen with positive x values shifting to the right and positive y values shifting downward.

Parameters

  • color - The color to use for the line
  • x0 - The x coordinate to start drawing from
  • y0 - The y coordinate to start drawing from
  • w - The width of the bounding box
  • h - The height of the bounding box
  • thickness - How thick the line should be in pixels

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.