Grx.fast_draw_line
function fast_draw_line(x1: Number(gint), y1: Number(gint), x2: Number(gint), y2: Number(gint), c: Grx.Color): void {
// Gjs wrapper for grx_fast_draw_line()
}
Draws a line on the current context from the starting coordinates to the ending coordinates using the specified color.
For horizontal and vertical lines, see Grx.fast_draw_hline and Grx.fast_draw_vline.
This function does not perform clipping. If you cannot ensure that the endpoints are within the bounds of the current context, then use Grx.draw_line instead.
- x1
starting X coordinate
- y1
starting Y coordinate
- x2
ending X coordinate
- y2
ending Y coordinate
- c
the color